1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

libpcap: Don't force Linux pcap type

Fixes building on Darwin #4515
This commit is contained in:
Wout Mertens 2014-10-14 13:38:20 +02:00
parent a1217e5b1a
commit d6d8aef47b

View file

@ -10,14 +10,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ flex bison ];
configureFlags = "--with-pcap=linux";
# Apparently, 32 bit systems need this forced? Not verified if still needed.
configureFlags = stdenv.lib.optionals (stdenv.system == "i686-linux") "--with-pcap=linux";
preInstall = ''mkdir -p $out/bin'';
crossAttrs = {
# Stripping hurts in static libraries
dontStrip = true;
configureFlags = [ "--with-pcap=linux" "ac_cv_linux_vers=2" ];
configureFlags = configureFlags ++ [ "ac_cv_linux_vers=2" ];
};
meta = {