libpcap: build with libnl

This commit is contained in:
Tungsten842 2023-03-16 12:16:28 +01:00 committed by Matthieu Coudron
parent 916dba8790
commit 8f45423217

View file

@ -4,6 +4,7 @@
, flex
, bison
, bluez
, libnl
, libxcrypt
, pkg-config
, withBluez ? false
@ -19,10 +20,12 @@ stdenv.mkDerivation rec {
sha256 = "sha256-KoiFxANRbPewkz7UsU1sqjDgIFJInr1BTcdaxS51WeY=";
};
buildInputs = lib.optionals withRemote [ libxcrypt ];
buildInputs = lib.optionals stdenv.isLinux [ libnl ]
++ lib.optionals withRemote [ libxcrypt ];
nativeBuildInputs = [ flex bison ]
++ lib.optionals withBluez [ bluez.dev pkg-config ];
++ lib.optionals stdenv.isLinux [ pkg-config ]
++ lib.optionals withBluez [ bluez.dev ];
# We need to force the autodetection because detection doesn't
# work in pure build environments.