1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

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