mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
libpcap: fix build on NetBSD
This commit is contained in:
parent
d0a243c4ba
commit
43445e9422
1 changed files with 1 additions and 4 deletions
|
@ -17,10 +17,7 @@ stdenv.mkDerivation rec {
|
|||
# We need to force the autodetection because detection doesn't
|
||||
# work in pure build environments.
|
||||
configureFlags = [
|
||||
("--with-pcap=" + {
|
||||
linux = "linux";
|
||||
darwin = "bpf";
|
||||
}.${stdenv.hostPlatform.parsed.kernel.name})
|
||||
"--with-pcap=${if stdenv.isLinux then "linux" else "bpf"}"
|
||||
] ++ optionals stdenv.isDarwin [
|
||||
"--disable-universal"
|
||||
] ++ optionals (stdenv.hostPlatform == stdenv.buildPlatform)
|
||||
|
|
Loading…
Reference in a new issue