mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
89570f24e9
commit
b545bebf42
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue