newt: move NIX_LDFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-07 14:15:59 +01:00
parent 82398cb2f5
commit ea3aaaa290
+9 -3
View File
@@ -42,9 +42,15 @@ stdenv.mkDerivation rec {
gettext # for darwin with clang
];
NIX_LDFLAGS =
"-lncurses"
+ lib.optionalString stdenv.hostPlatform.isDarwin " -L${python3}/lib -lpython${python3.pythonVersion}";
env.NIX_LDFLAGS = toString (
[
"-lncurses"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"-L${python3}/lib"
"-lpython${python3.pythonVersion}"
]
);
preConfigure = ''
# If CPP is set explicitly, configure and make will not agree about which