3
0
Fork 0
forked from mirrors/nixpkgs

ammonite: fix #68151

Upstream doesn't include a shebang line but recommends adding one at
installation time. NixOS users noticed that the command wouldn't exec
when using certain shells.
This commit is contained in:
Louis Bettens 2019-11-22 09:49:23 +01:00
parent fce01d8f5e
commit 47aefc88c8

View file

@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
sed -i '0,/java/{s|java|${jre}/bin/java|}' $out/bin/amm
'' + optionalString (disableRemoteLogging) ''
sed -i '0,/ammonite.Main/{s|ammonite.Main|ammonite.Main --no-remote-logging|}' $out/bin/amm
sed -i '1i #!/bin/sh' $out/bin/amm
'';
meta = {