2012-05-18 11:32:02 +02:00
|
|
|
{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 = ''
|
2014-01-09 13:01:38 +01:00
|
|
|
mkdir -p "$out"/{bin,share/java/zvtm/plugins,share/doc/zvtm}
|
2012-05-18 11:32:02 +02:00
|
|
|
|
|
|
|
cp overview.html *.license.* "$out/share/doc/zvtm"
|
|
|
|
|
2014-01-09 13:01:38 +01:00
|
|
|
cp -r target/* "$out/share/java/zvtm/"
|
2012-05-18 11:32:02 +02:00
|
|
|
|
|
|
|
echo '#!/bin/sh' > "$out/bin/zgrviewer"
|
2014-01-09 13:01:38 +01:00
|
|
|
echo "java -jar '$out/share/java/zvtm/zgrviewer-${version}.jar'" >> "$out/bin/zgrviewer"
|
2012-05-18 11:32:02 +02:00
|
|
|
chmod a+x "$out/bin/zgrviewer"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
# Quicker to unpack locally than load Hydra
|
2013-11-05 00:04:36 +01:00
|
|
|
hydraPlatforms = [];
|
2012-05-18 11:32:02 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [raskin];
|
|
|
|
license = with stdenv.lib.licenses; lgpl21Plus;
|
|
|
|
description = "GraphViz graph viewer/navigator";
|
|
|
|
};
|
|
|
|
}
|