nixpkgs-suyu/pkgs/applications/graphics/zgrviewer/default.nix

32 lines
1 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, jre, unzip}:
stdenv.mkDerivation rec {
2014-11-03 12:38:37 +01:00
version = "0.9.0";
pname = "zgrviewer";
name="${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/zvtm/${pname}/${version}/${name}.zip";
2014-11-03 12:38:37 +01:00
sha256 = "1yg2rck81sqqrgfi5kn6c1bz42dr7d0zqpcsdjhicssi1y159f23";
};
buildInputs = [jre unzip];
buildPhase = "";
installPhase = ''
2014-01-09 13:01:38 +01:00
mkdir -p "$out"/{bin,share/java/zvtm/plugins,share/doc/zvtm}
cp overview.html *.license.* "$out/share/doc/zvtm"
2014-01-09 13:01:38 +01:00
cp -r target/* "$out/share/java/zvtm/"
echo '#!/bin/sh' > "$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 = {
# Quicker to unpack locally than load Hydra
hydraPlatforms = [];
maintainers = with stdenv.lib.maintainers; [raskin];
license = stdenv.lib.licenses.lgpl21Plus;
description = "GraphViz graph viewer/navigator";
platforms = with stdenv.lib.platforms; unix;
};
}