leo3: fix executable

This commit is contained in:
Gabriel Ebner 2020-09-19 15:05:02 +02:00
parent d10716e1dc
commit 67ff41201f

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
mkdir -p "$out"/{bin,lib/java/leo3}
cp "${jar}" "$out/lib/java/leo3/leo3.jar"
echo "#!${runtimeShell}" > "$out/bin/leo3"
echo "'${openjdk}/bin/java' -jar '$out/lib/java/leo3/leo3.jar' \"\$@\"" > "$out/bin/leo3"
echo "'${openjdk}/bin/java' -jar '$out/lib/java/leo3/leo3.jar' \"\$@\"" >> "$out/bin/leo3"
chmod a+x "$out/bin/leo3"
'';