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:
parent
1b882edf78
commit
822084fa37
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue