From e3e7eed22cf5f2db558477a0dfdd90e81e038122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 21 Dec 2021 18:49:02 +0100 Subject: treewide: move packages to subdirectory --- pkgs/sentinel/proxy/default.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/sentinel/proxy/default.nix (limited to 'pkgs/sentinel/proxy') diff --git a/pkgs/sentinel/proxy/default.nix b/pkgs/sentinel/proxy/default.nix new file mode 100644 index 0000000..5de2836 --- /dev/null +++ b/pkgs/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"; +} -- cgit v1.2.3