dsniff: fixup build

https://hydra.nixos.org/build/215252689
This commit is contained in:
Vladimír Čunát 2023-04-09 09:38:28 +02:00
parent 3f76f631c5
commit 418cc5813e
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -1,5 +1,5 @@
{ gcc9Stdenv, lib, fetchFromGitLab, autoreconfHook, libpcap, db, glib, libnet, libnids, symlinkJoin, openssl
, rpcsvc-proto, libtirpc, libnsl
, rpcsvc-proto, libtirpc, libnsl, libnl
}:
# We compile with GCC 9 since GCC 10 segfaults on the code
@ -59,8 +59,8 @@ in gcc9Stdenv.mkDerivation rec {
};
nativeBuildInputs = [ autoreconfHook rpcsvc-proto ];
buildInputs = [ glib pcap libtirpc libnsl ];
NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread -ltirpc";
buildInputs = [ glib pcap libtirpc libnsl libnl ];
NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread -ltirpc -lnl-3 -lnl-genl-3";
env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ];
postPatch = ''
for patch in debian/patches/*.patch; do