argus-clients: Fix build, build client tools

This commit is contained in:
Tim Steinbach 2021-02-23 12:21:24 -05:00 committed by Tim Steinbach
parent fbecdac147
commit 2962d51b90

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, pkg-config, perl }:
{ lib, stdenv, fetchurl, libpcap, bison, flex, cyrus_sasl, tcp_wrappers, pkg-config, perl, libtirpc, libnsl }:
stdenv.mkDerivation rec {
pname = "argus-clients";
@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "1c9vj6ma00gqq9h92fg71sxcsjzz912166sdg90ahvnmvmh3l1rj";
};
patchPhase = ''
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
postPatch = ''
for file in ./examples/*/*.pl; do
substituteInPlace $file \
--subst-var-by PERLBIN ${perl}/bin/perl
@ -19,7 +21,7 @@ stdenv.mkDerivation rec {
configureFlags = [ "--with-perl=${perl}/bin/perl" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpcap bison cyrus_sasl tcp_wrappers flex ];
buildInputs = [ libpcap bison cyrus_sasl tcp_wrappers flex libnsl ];
meta = with lib; {
description = "Clients for ARGUS";