1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

tcpdump: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:47:36 -04:00 committed by John Ericson
parent 1b882edf78
commit 822084fa37

View file

@ -1,4 +1,6 @@
{ stdenv, fetchurl, libpcap, enableStatic ? false }:
{ stdenv, fetchurl, libpcap, enableStatic ? false
, hostPlatform
}:
stdenv.mkDerivation rec {
name = "tcpdump-${version}";
@ -15,7 +17,7 @@ stdenv.mkDerivation rec {
crossAttrs = {
LDFLAGS = if enableStatic then "-static" else "";
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
(stdenv.cross.platform.kernelMajor == "2.4") "--disable-ipv6");
(hostPlatform.platform.kernelMajor == "2.4") "--disable-ipv6");
};
meta = {