From ea3aaaa2908a8cf15bf497e92202a0da2e311340 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 1 Feb 2026 22:55:53 +0100 Subject: [PATCH] newt: move NIX_LDFLAGS into env for structuredAttrs --- pkgs/by-name/ne/newt/package.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ne/newt/package.nix b/pkgs/by-name/ne/newt/package.nix index 6ab5c7875d40..da6dd8d342d6 100644 --- a/pkgs/by-name/ne/newt/package.nix +++ b/pkgs/by-name/ne/newt/package.nix @@ -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