aboutsummaryrefslogtreecommitdiff
path: root/sentinel/proxy
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-12-13 17:17:01 +0100
committerKarel Kočí <cynerd@email.cz>2021-12-13 17:17:01 +0100
commit001b0016acfeaeff22c2cef42ae72a1fa1fec0a4 (patch)
treeae949614800007b79b9b343c97ca1a8d32a31e0b /sentinel/proxy
downloadnixturris-001b0016acfeaeff22c2cef42ae72a1fa1fec0a4.tar.gz
nixturris-001b0016acfeaeff22c2cef42ae72a1fa1fec0a4.tar.bz2
nixturris-001b0016acfeaeff22c2cef42ae72a1fa1fec0a4.zip
Add Sentinel packages and needed libraries
Diffstat (limited to 'sentinel/proxy')
-rw-r--r--sentinel/proxy/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/sentinel/proxy/default.nix b/sentinel/proxy/default.nix
new file mode 100644
index 0000000..5de2836
--- /dev/null
+++ b/sentinel/proxy/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, lib, fetchgit
+, autoconf, autoconf-archive, automake, libtool, pkgconfig, gperf
+, openssl, zlib, czmq, libconfig, msgpack, paho-mqtt-c
+}:
+
+stdenv.mkDerivation rec {
+ pname = "sentinel-proxy";
+ version = "1.4";
+ meta = with lib; {
+ homepage = "https://gitlab.nic.cz/turris/sentinel/proxy";
+ description = "Main MQTT Sentinel client. Proxy that lives on the router and relays messages received from ZMQ to uplink server over MQTT channel.";
+ platforms = with platforms; linux;
+ license = licenses.gpl3;
+ };
+
+ src = fetchgit {
+ url = "https://gitlab.nic.cz/turris/sentinel/proxy.git";
+ rev = "v" + version;
+ sha256 = "11s538yf4ydlzlx1vs9fc6hh9igf40s3v853mlcki8a28bni6xwb";
+ };
+
+ buildInputs = [openssl zlib czmq libconfig msgpack paho-mqtt-c];
+ nativeBuildInputs = [
+ autoconf autoconf-archive automake libtool pkgconfig gperf
+ ];
+
+ preConfigure = "./bootstrap";
+}