aboutsummaryrefslogtreecommitdiff
path: root/pkgs/sentinel/proxy/default.nix
blob: 5de283695763e92279252424d9f439adee07df56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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";
}