nftables: fix static build (#441065)
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
iptables,
|
iptables,
|
||||||
nixosTests,
|
nixosTests,
|
||||||
gitUpdater,
|
gitUpdater,
|
||||||
|
ncurses,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@@ -52,7 +53,8 @@ stdenv.mkDerivation rec {
|
|||||||
docbook_xsl
|
docbook_xsl
|
||||||
findXMLCatalogs
|
findXMLCatalogs
|
||||||
libxslt
|
libxslt
|
||||||
];
|
]
|
||||||
|
++ lib.optional stdenv.hostPlatform.isStatic ncurses;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libmnl
|
libmnl
|
||||||
@@ -64,6 +66,8 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional withCli libedit
|
++ lib.optional withCli libedit
|
||||||
++ lib.optional withXtables iptables;
|
++ lib.optional withXtables iptables;
|
||||||
|
|
||||||
|
env.NIX_LDFLAGS = if stdenv.hostPlatform.isStatic then "-lncursesw" else null;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-json"
|
"--with-json"
|
||||||
(lib.withFeatureAs withCli "cli" "editline")
|
(lib.withFeatureAs withCli "cli" "editline")
|
||||||
|
|||||||
Reference in New Issue
Block a user