nftables: 1.0.7 -> 1.0.8 (#243985)
https://www.spinics.net/lists/netfilter/msg61165.html
This commit is contained in:
parent
1733d8032a
commit
342e6c6bff
@ -4,17 +4,18 @@
|
|||||||
, gmp, jansson, libedit
|
, gmp, jansson, libedit
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, withDebugSymbols ? false
|
, withDebugSymbols ? false
|
||||||
, withPython ? false , python3
|
, withPython ? false, python3
|
||||||
, withXtables ? true , iptables
|
, withXtables ? true, iptables
|
||||||
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.0.7";
|
version = "1.0.8";
|
||||||
pname = "nftables";
|
pname = "nftables";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://netfilter.org/projects/nftables/files/${pname}-${version}.tar.xz";
|
url = "https://netfilter.org/projects/nftables/files/${pname}-${version}.tar.xz";
|
||||||
hash = "sha256-wSrJQf/5ra7fFzZ9XOITeJuYoNMUJ3vCKz1x4QiR9BI=";
|
hash = "sha256-k3N0DeQagtvJiBjgpGoHP664qNBon6T6GnQ5nDK/PVA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -27,7 +28,10 @@ stdenv.mkDerivation rec {
|
|||||||
libmnl libnftnl libpcap
|
libmnl libnftnl libpcap
|
||||||
gmp jansson libedit
|
gmp jansson libedit
|
||||||
] ++ lib.optional withXtables iptables
|
] ++ lib.optional withXtables iptables
|
||||||
++ lib.optional withPython python3;
|
++ lib.optionals withPython [
|
||||||
|
python3
|
||||||
|
python3.pkgs.setuptools
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-json"
|
"--with-json"
|
||||||
@ -37,6 +41,11 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional withPython "--enable-python"
|
++ lib.optional withPython "--enable-python"
|
||||||
++ lib.optional withXtables "--with-xtables";
|
++ lib.optional withXtables "--with-xtables";
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
inherit (nixosTests) firewall-nftables lxd-nftables;
|
||||||
|
nat = { inherit (nixosTests.nat.nftables) firewall standalone; };
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The project that aims to replace the existing {ip,ip6,arp,eb}tables framework";
|
description = "The project that aims to replace the existing {ip,ip6,arp,eb}tables framework";
|
||||||
homepage = "https://netfilter.org/projects/nftables/";
|
homepage = "https://netfilter.org/projects/nftables/";
|
||||||
|
Loading…
Reference in New Issue
Block a user