diff options
author | Louis Bettens <louis@bettens.info> | 2019-11-22 09:49:23 +0100 |
---|---|---|
committer | Louis Bettens <louis@bettens.info> | 2019-11-22 10:29:04 +0100 |
commit | 47aefc88c87f33dda4868723ccffbcbbebcb8ce2 (patch) | |
tree | 17d38cb67ad67f57bd71889654802bccaeb16937 /pkgs | |
parent | fce01d8f5efd83c22637f248e40acdd0e1a6107f (diff) |
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.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/ammonite/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/tools/ammonite/default.nix b/pkgs/development/tools/ammonite/default.nix index ad33edf004f0..69e81596574b 100644 --- a/pkgs/development/tools/ammonite/default.nix +++ b/pkgs/development/tools/ammonite/default.nix @@ -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 = { |