mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03: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
@ -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 New Issue
Block a user