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.
This commit is contained in:
kataokatsuki 2026-06-27 20:05:21 +09:00
commit b545bebf42

View file

@ -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