mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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:
parent
a6e4e8f600
commit
3a73ce2427
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue