Merge pull request #254769 from alyssais/nftables-noninteractive

nftables: add option to disable interactive

authored by

ajs124 and committed by
GitHub
822db74b ec985f54

+6 -4
+6 -4
pkgs/os-specific/linux/nftables/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config, bison, flex 2 2 , asciidoc, libxslt, findXMLCatalogs, docbook_xml_dtd_45, docbook_xsl 3 3 , libmnl, libnftnl, libpcap 4 - , gmp, jansson, libedit 4 + , gmp, jansson 5 5 , autoreconfHook 6 6 , withDebugSymbols ? false 7 + , withCli ? true, libedit 7 8 , withPython ? false, python3 8 9 , withXtables ? true, iptables 9 10 , nixosTests ··· 26 27 27 28 buildInputs = [ 28 29 libmnl libnftnl libpcap 29 - gmp jansson libedit 30 - ] ++ lib.optional withXtables iptables 30 + gmp jansson 31 + ] ++ lib.optional withCli libedit 32 + ++ lib.optional withXtables iptables 31 33 ++ lib.optionals withPython [ 32 34 python3 33 35 python3.pkgs.setuptools ··· 35 37 36 38 configureFlags = [ 37 39 "--with-json" 38 - "--with-cli=editline" 40 + (lib.withFeatureAs withCli "cli" "editline") 39 41 ] ++ lib.optional (!withDebugSymbols) "--disable-debug" 40 42 ++ lib.optional (!withPython) "--disable-python" 41 43 ++ lib.optional withPython "--enable-python"