libpcap: fix build on NetBSD
This commit is contained in:
parent
d0a243c4ba
commit
43445e9422
|
@ -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