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