dsniff: fix build w/glibc-2.32
This commit is contained in:
parent
120653bd50
commit
1ceec4a7dc
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitLab, autoreconfHook, libpcap, db, glib, libnet, libnids, symlinkJoin, openssl }:
|
{ stdenv, fetchFromGitLab, autoreconfHook, libpcap, db, glib, libnet, libnids, symlinkJoin, openssl
|
||||||
|
, rpcsvc-proto, libtirpc, libnsl
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
/*
|
/*
|
||||||
dsniff's build system unconditionnaly wants static libraries and does not
|
dsniff's build system unconditionnaly wants static libraries and does not
|
||||||
@ -52,9 +54,10 @@ in stdenv.mkDerivation {
|
|||||||
name = "dsniff.tar.gz";
|
name = "dsniff.tar.gz";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook rpcsvc-proto ];
|
||||||
buildInputs = [ glib pcap ];
|
buildInputs = [ glib pcap libtirpc libnsl ];
|
||||||
NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread -ldl";
|
NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread -ldl -ltirpc";
|
||||||
|
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
for patch in debian/patches/*.patch; do
|
for patch in debian/patches/*.patch; do
|
||||||
patch < $patch
|
patch < $patch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user