nftables: 1.0.7 -> 1.0.8 (#243985)

https://www.spinics.net/lists/netfilter/msg61165.html
This commit is contained in:
ajs124 2023-07-17 19:32:14 +02:00 committed by GitHub
parent 1733d8032a
commit 342e6c6bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,17 +4,18 @@
, gmp, jansson, libedit
, autoreconfHook
, withDebugSymbols ? false
, withPython ? false , python3
, withXtables ? true , iptables
, withPython ? false, python3
, withXtables ? true, iptables
, nixosTests
}:
stdenv.mkDerivation rec {
version = "1.0.7";
version = "1.0.8";
pname = "nftables";
src = fetchurl {
url = "https://netfilter.org/projects/nftables/files/${pname}-${version}.tar.xz";
hash = "sha256-wSrJQf/5ra7fFzZ9XOITeJuYoNMUJ3vCKz1x4QiR9BI=";
hash = "sha256-k3N0DeQagtvJiBjgpGoHP664qNBon6T6GnQ5nDK/PVA=";
};
nativeBuildInputs = [
@ -27,7 +28,10 @@ stdenv.mkDerivation rec {
libmnl libnftnl libpcap
gmp jansson libedit
] ++ lib.optional withXtables iptables
++ lib.optional withPython python3;
++ lib.optionals withPython [
python3
python3.pkgs.setuptools
];
configureFlags = [
"--with-json"
@ -37,6 +41,11 @@ stdenv.mkDerivation rec {
++ lib.optional withPython "--enable-python"
++ lib.optional withXtables "--with-xtables";
passthru.tests = {
inherit (nixosTests) firewall-nftables lxd-nftables;
nat = { inherit (nixosTests.nat.nftables) firewall standalone; };
};
meta = with lib; {
description = "The project that aims to replace the existing {ip,ip6,arp,eb}tables framework";
homepage = "https://netfilter.org/projects/nftables/";