argus-clients: Fix build, build client tools
This commit is contained in:
parent
fbecdac147
commit
2962d51b90
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "argus-clients";
|
pname = "argus-clients";
|
||||||
|
@ -9,7 +9,9 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1c9vj6ma00gqq9h92fg71sxcsjzz912166sdg90ahvnmvmh3l1rj";
|
sha256 = "1c9vj6ma00gqq9h92fg71sxcsjzz912166sdg90ahvnmvmh3l1rj";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
for file in ./examples/*/*.pl; do
|
for file in ./examples/*/*.pl; do
|
||||||
substituteInPlace $file \
|
substituteInPlace $file \
|
||||||
--subst-var-by PERLBIN ${perl}/bin/perl
|
--subst-var-by PERLBIN ${perl}/bin/perl
|
||||||
|
@ -19,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = [ "--with-perl=${perl}/bin/perl" ];
|
configureFlags = [ "--with-perl=${perl}/bin/perl" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ libpcap bison cyrus_sasl tcp_wrappers flex ];
|
buildInputs = [ libpcap bison cyrus_sasl tcp_wrappers flex libnsl ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Clients for ARGUS";
|
description = "Clients for ARGUS";
|
||||||
|
|
Loading…
Reference in a new issue