newt: move NIX_LDFLAGS into env for structuredAttrs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user