mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
Merge pull request #4707 from wmertens/libpcap-darwin
libpcap: Force detection on Darwin
This commit is contained in:
commit
fc4cf24965
@ -10,7 +10,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ flex bison ];
|
||||
|
||||
configureFlags = stdenv.lib.optionals stdenv.isLinux "--with-pcap=linux";
|
||||
# We need to force the autodetection because detection doesn't
|
||||
# work in pure build enviroments.
|
||||
configureFlags =
|
||||
if stdenv.isLinux then [ "--with-pcap=linux" ]
|
||||
else if stdenv.isDarwin then [ "--with-pcap=bpf" ]
|
||||
else [];
|
||||
|
||||
preInstall = ''mkdir -p $out/bin'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user