From b545bebf4294e5bf9b92b0419aa274b4a1ee71f4 Mon Sep 17 00:00:00 2001 From: kataokatsuki Date: Sat, 27 Jun 2026 20:05:21 +0900 Subject: [PATCH] nodejs: call configure.py directly nodejs.nix currently creates configureScript with writeScript. This produces an executable text file without a shebang, which configurePhase then runs as $configureScript. The wrapper only invokes configure.py through Python, so call configure.py through python.interpreter directly instead. This avoids the shebang-less wrapper path and stops relying on python.executable being resolved through PATH. --- pkgs/development/web/nodejs/nodejs.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 343be8e14791..6ce440b867bd 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -347,9 +347,7 @@ let dontDisableStatic = true; - configureScript = writeScript "nodejs-configure" '' - exec ${python.executable} configure.py "$@" - ''; + configureScript = "${python.interpreter} configure.py"; # In order to support unsupported cross configurations, we copy some intermediate executables # from a native build and replace all the build-system tools with a script which simply touches