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