git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4707 from wmertens/libpcap-darwin
fc4cf24Peter Simons
pkgs/development/libraries/libpcap/default.nix+6−1
@@ -10,7 +10,12 @@ stdenv.mkDerivation rec {
10
10
11 nativeBuildInputs = [ flex bison ];
11 nativeBuildInputs = [ flex bison ];
12
12
13+ # We need to force the autodetection because detection doesn't
14+ # work in pure build enviroments.
15+ configureFlags =
13− configureFlags = stdenv.lib.optionals stdenv.isLinux "--with-pcap=linux";
16+ if stdenv.isLinux then [ "--with-pcap=linux" ]
17+ else if stdenv.isDarwin then [ "--with-pcap=bpf" ]
18+ else [];
14
19
15 preInstall = ''mkdir -p $out/bin'';
20 preInstall = ''mkdir -p $out/bin'';
16
21