|
|
|
@ -8,8 +8,6 @@ |
|
|
|
|
, withXtables ? true , iptables |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
with lib; |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
|
version = "1.0.2"; |
|
|
|
|
pname = "nftables"; |
|
|
|
@ -28,8 +26,8 @@ stdenv.mkDerivation rec { |
|
|
|
|
buildInputs = [ |
|
|
|
|
libmnl libnftnl libpcap |
|
|
|
|
gmp jansson libedit |
|
|
|
|
] ++ optional withXtables iptables |
|
|
|
|
++ optional withPython python3; |
|
|
|
|
] ++ lib.optional withXtables iptables |
|
|
|
|
++ lib.optional withPython python3; |
|
|
|
|
|
|
|
|
|
preConfigure = '' |
|
|
|
|
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file |
|
|
|
@ -46,12 +44,12 @@ stdenv.mkDerivation rec { |
|
|
|
|
configureFlags = [ |
|
|
|
|
"--with-json" |
|
|
|
|
"--with-cli=editline" |
|
|
|
|
] ++ optional (!withDebugSymbols) "--disable-debug" |
|
|
|
|
++ optional (!withPython) "--disable-python" |
|
|
|
|
++ optional withPython "--enable-python" |
|
|
|
|
++ optional withXtables "--with-xtables"; |
|
|
|
|
] ++ lib.optional (!withDebugSymbols) "--disable-debug" |
|
|
|
|
++ lib.optional (!withPython) "--disable-python" |
|
|
|
|
++ lib.optional withPython "--enable-python" |
|
|
|
|
++ lib.optional withXtables "--with-xtables"; |
|
|
|
|
|
|
|
|
|
meta = { |
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "The project that aims to replace the existing {ip,ip6,arp,eb}tables framework"; |
|
|
|
|
homepage = "https://netfilter.org/projects/nftables/"; |
|
|
|
|
license = licenses.gpl2Only; |
|
|
|
|