@@ -10,7 +10,12 @@ stdenv.mkDerivation rec {
11 nativeBuildInputs = [ flex bison ];
11 nativeBuildInputs = [ flex bison ];
13+ # We need to force the autodetection because detection doesn't
14+ # work in pure build enviroments.
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" ]
15 preInstall = ''mkdir -p $out/bin'';
20 preInstall = ''mkdir -p $out/bin'';