mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
libpcap: Force detection on Darwin
This commit is contained in:
parent
2ee8be5db5
commit
6d4b7d3af1
@ -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