GHCJS: Fix autogenerated node executables

This commit is contained in:
Will Fancher 2018-03-25 20:43:23 -04:00
parent 8cbf295b6c
commit 0a8359f18c

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