libpcap: build with libnl
This commit is contained in:
parent
916dba8790
commit
8f45423217
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user