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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "tcpdump-${version}";
|
name = "tcpdump-${version}";
|
||||||
@ -15,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
LDFLAGS = if enableStatic then "-static" else "";
|
LDFLAGS = if enableStatic then "-static" else "";
|
||||||
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
|
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 = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user