tcpdump: Remove crossAttrs and obsolete options
This commit is contained in:
parent
4830019956
commit
d1cf0a8a3a
@ -1,6 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, libpcap, enableStatic ? false
|
{ stdenv, fetchurl, fetchpatch, libpcap }:
|
||||||
, hostPlatform
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "tcpdump-${version}";
|
name = "tcpdump-${version}";
|
||||||
@ -20,11 +18,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ libpcap ];
|
buildInputs = [ libpcap ];
|
||||||
|
|
||||||
crossAttrs = {
|
configureFlags = stdenv.lib.optional
|
||||||
LDFLAGS = if enableStatic then "-static" else "";
|
(stdenv.hostPlatform != stdenv.buildPlatform)
|
||||||
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
|
"ac_cv_linux_vers=2";
|
||||||
(hostPlatform.platform.kernelMajor or null == "2.4") "--disable-ipv6");
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Network sniffer";
|
description = "Network sniffer";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user