diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-05-04 20:51:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 20:51:27 +0200 |
commit | 7e4329608cbf52abf3a3e13b529fbe324ae5cb30 (patch) | |
tree | 6e68128935fec58159da7b56720ae6451dc567fe /pkgs/os-specific/linux | |
parent | ad5e4dacb42f9f710317d2f39666bc24e68d6194 (diff) | |
parent | aeeb5ebd00adb6e247a4a5774a8a84f24fb1cfb2 (diff) | |
download | nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.tar nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.tar.gz nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.tar.bz2 nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.tar.lz nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.tar.xz nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.tar.zst nixpkgs-7e4329608cbf52abf3a3e13b529fbe324ae5cb30.zip |
Merge pull request #170952 from SuperSandro2000/firewalld
firewalld: init at 1.1.1
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r-- | pkgs/os-specific/linux/nftables/default.nix | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pkgs/os-specific/linux/nftables/default.nix b/pkgs/os-specific/linux/nftables/default.nix index 8485a868d8a..051ca196305 100644 --- a/pkgs/os-specific/linux/nftables/default.nix +++ b/pkgs/os-specific/linux/nftables/default.nix @@ -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; |