From 5339e045194c5ad482250c0271959a5fd9f97db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 2 Jan 2022 17:23:58 +0100 Subject: nios: Add sentinel module --- pkgs/sentinel/proxy/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'pkgs/sentinel/proxy') diff --git a/pkgs/sentinel/proxy/default.nix b/pkgs/sentinel/proxy/default.nix index 5de2836..a3b6bf2 100644 --- a/pkgs/sentinel/proxy/default.nix +++ b/pkgs/sentinel/proxy/default.nix @@ -1,6 +1,7 @@ { stdenv, lib, fetchgit -, autoconf, autoconf-archive, automake, libtool, pkgconfig, gperf +, bootstrapHook, pkg-config, gperf , openssl, zlib, czmq, libconfig, msgpack, paho-mqtt-c +, check }: stdenv.mkDerivation rec { @@ -9,7 +10,6 @@ stdenv.mkDerivation rec { 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; }; @@ -20,9 +20,12 @@ stdenv.mkDerivation rec { }; buildInputs = [openssl zlib czmq libconfig msgpack paho-mqtt-c]; - nativeBuildInputs = [ - autoconf autoconf-archive automake libtool pkgconfig gperf - ]; + nativeBuildInputs = [bootstrapHook pkg-config gperf]; + depsBuildBuild = [check]; preConfigure = "./bootstrap"; + + doCheck = true; + doInstallCheck = true; + configureFlags = lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "--enable-tests"; } -- cgit v1.2.3