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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.0 KiB
Nix
Raw Normal View History

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