summary refs log tree commit diff
path: root/pkgs/applications/graphics/zgrviewer
diff options
context:
space:
mode:
authorImuli <i@imu.li>2016-10-17 22:11:54 -0400
committerImuli <i@imu.li>2016-10-17 22:11:54 -0400
commit3a73ce2427ed32c1329127dea955ee02bfb3328f (patch)
treedb891d2311c5105679b669d797de227c9eaa03fe /pkgs/applications/graphics/zgrviewer
parenta6e4e8f600e67af8dc7c03c14058d1c0a02ddc1a (diff)
downloadnixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.tar
nixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.tar.gz
nixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.tar.bz2
nixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.tar.lz
nixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.tar.xz
nixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.tar.zst
nixpkgs-3a73ce2427ed32c1329127dea955ee02bfb3328f.zip
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.
Diffstat (limited to 'pkgs/applications/graphics/zgrviewer')
-rw-r--r--pkgs/applications/graphics/zgrviewer/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/zgrviewer/default.nix b/pkgs/applications/graphics/zgrviewer/default.nix
index 85b05dd3b0a..03ffa8af370 100644
--- a/pkgs/applications/graphics/zgrviewer/default.nix
+++ b/pkgs/applications/graphics/zgrviewer/default.nix
@@ -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 = {