2012-05-18 13:32:02 +04:00
|
|
|
{stdenv, fetchurl, jre, unzip}:
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-03 14:38:37 +03:00
|
|
|
version = "0.9.0";
|
2012-05-18 13:32:02 +04:00
|
|
|
pname = "zgrviewer";
|
|
|
|
name="${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/zvtm/${pname}/${version}/${name}.zip";
|
2014-11-03 14:38:37 +03:00
|
|
|
sha256 = "1yg2rck81sqqrgfi5kn6c1bz42dr7d0zqpcsdjhicssi1y159f23";
|
2012-05-18 13:32:02 +04:00
|
|
|
};
|
|
|
|
buildInputs = [jre unzip];
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
2014-01-09 16:01:38 +04:00
|
|
|
mkdir -p "$out"/{bin,share/java/zvtm/plugins,share/doc/zvtm}
|
2012-05-18 13:32:02 +04:00
|
|
|
|
|
|
|
cp overview.html *.license.* "$out/share/doc/zvtm"
|
|
|
|
|
2014-01-09 16:01:38 +04:00
|
|
|
cp -r target/* "$out/share/java/zvtm/"
|
2012-05-18 13:32:02 +04:00
|
|
|
|
|
|
|
echo '#!/bin/sh' > "$out/bin/zgrviewer"
|
2016-10-18 05:11:54 +03:00
|
|
|
echo "${jre}/lib/openjdk/jre/bin/java -jar '$out/share/java/zvtm/zgrviewer-${version}.jar' \"\$@\"" >> "$out/bin/zgrviewer"
|
2012-05-18 13:32:02 +04:00
|
|
|
chmod a+x "$out/bin/zgrviewer"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
# Quicker to unpack locally than load Hydra
|
2013-11-05 03:04:36 +04:00
|
|
|
hydraPlatforms = [];
|
2012-05-18 13:32:02 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
2015-05-28 20:20:29 +03:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2012-05-18 13:32:02 +04:00
|
|
|
description = "GraphViz graph viewer/navigator";
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2012-05-18 13:32:02 +04:00
|
|
|
};
|
|
|
|
}
|