Merge pull request #37826 from ElvishJerricco/fix-node-executables-ghcjs

GHCJS: Fix autogenerated node executables
This commit is contained in:
Peter Simons 2018-03-26 12:05:42 +02:00 committed by GitHub
commit caf83c6477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,6 +352,7 @@ stdenv.mkDerivation ({
for exeDir in "$out/bin/"*.jsexe; do
exe="''${exeDir%.jsexe}"
printWords '#!${nodejs}/bin/node' > "$exe"
echo >> "$exe"
cat "$exeDir/all.js" >> "$exe"
chmod +x "$exe"
done