Merge pull request #80707 from uosis/ammonite

ammonite: fix source reference to allow dynamic binding
This commit is contained in:
Mario Rodas 2020-03-07 12:13:26 -05:00 committed by GitHub
commit c5e223e120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
phases = "installPhase";
installPhase = ''
install -Dm755 ${src} $out/bin/amm
install -Dm755 $src $out/bin/amm
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