summary refs log tree commit diff
path: root/pkgs/applications/graphics/zgrviewer
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2012-05-18 09:32:02 +0000
committerMichael Raskin <7c6f434c@mail.ru>2012-05-18 09:32:02 +0000
commitf5211427b478ca32f551d87396a6b8bd20b42c66 (patch)
tree0b6ff21d545380936937ba8eed0758279b0511a8 /pkgs/applications/graphics/zgrviewer
parent1e7dc29a983a5bab42a536fdb8b649337e59bd73 (diff)
downloadnixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.tar
nixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.tar.gz
nixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.tar.bz2
nixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.tar.lz
nixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.tar.xz
nixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.tar.zst
nixpkgs-f5211427b478ca32f551d87396a6b8bd20b42c66.zip
Adding zgrviewer
svn path=/nixpkgs/trunk/; revision=34166
Diffstat (limited to 'pkgs/applications/graphics/zgrviewer')
-rw-r--r--pkgs/applications/graphics/zgrviewer/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/zgrviewer/default.nix b/pkgs/applications/graphics/zgrviewer/default.nix
new file mode 100644
index 00000000000..5fe30bd7a03
--- /dev/null
+++ b/pkgs/applications/graphics/zgrviewer/default.nix
@@ -0,0 +1,30 @@
+{stdenv, fetchurl, jre, unzip}:
+stdenv.mkDerivation rec {
+  version = "0.8.2";
+  pname = "zgrviewer";
+  name="${pname}-${version}";
+  src = fetchurl {
+    url = "mirror://sourceforge/zvtm/${pname}/${version}/${name}.zip";
+    sha256 = "a76b9865c1490a6cfc08911592a19c15fe5972bf58e017cb31db580146f069bb";
+  };
+  buildInputs = [jre unzip];
+  buildPhase = "";
+  installPhase = ''
+    mkdir -p "$out"/{bin,lib/java/zvtm/plugins,share/doc/zvtm}
+
+    cp overview.html *.license.* "$out/share/doc/zvtm"
+
+    cp -r target/* "$out/lib/java/zvtm/"
+
+    echo '#!/bin/sh' > "$out/bin/zgrviewer"
+    echo "java -jar '$out/lib/java/zvtm/zgrviewer-${version}.jar'" >> "$out/bin/zgrviewer"
+    chmod a+x "$out/bin/zgrviewer"
+  '';
+  meta = {
+    # Quicker to unpack locally than load Hydra
+    platforms = [];
+    maintainers = with stdenv.lib.maintainers; [raskin];
+    license = with stdenv.lib.licenses; lgpl21Plus;
+    description = "GraphViz graph viewer/navigator";
+  };
+}