zgrviewer: pass arguments and use full java path

So the user doesn't need java in their environment and can pass
filenames on the command line.
This commit is contained in:
Imuli 2016-10-17 22:11:54 -04:00
parent a6e4e8f600
commit 3a73ce2427

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
cp -r target/* "$out/share/java/zvtm/"
echo '#!/bin/sh' > "$out/bin/zgrviewer"
echo "java -jar '$out/share/java/zvtm/zgrviewer-${version}.jar'" >> "$out/bin/zgrviewer"
echo "${jre}/lib/openjdk/jre/bin/java -jar '$out/share/java/zvtm/zgrviewer-${version}.jar' \"\$@\"" >> "$out/bin/zgrviewer"
chmod a+x "$out/bin/zgrviewer"
'';
meta = {