mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 00:43:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, jre, unzip, runtimeShell }:
|
|
stdenv.mkDerivation rec {
|
|
version = "0.9.0";
|
|
pname = "zgrviewer";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/zvtm/${pname}/${version}/${pname}-${version}.zip";
|
|
sha256 = "1yg2rck81sqqrgfi5kn6c1bz42dr7d0zqpcsdjhicssi1y159f23";
|
|
};
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [jre];
|
|
buildPhase = "";
|
|
installPhase = ''
|
|
mkdir -p "$out"/{bin,share/java/zvtm/plugins,share/doc/zvtm}
|
|
|
|
cp overview.html *.license.* "$out/share/doc/zvtm"
|
|
|
|
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 = [];
|
|
maintainers = with lib.maintainers; [raskin];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
license = lib.licenses.lgpl21Plus;
|
|
description = "GraphViz graph viewer/navigator";
|
|
platforms = with lib.platforms; unix;
|
|
mainProgram = "zgrviewer";
|
|
};
|
|
}
|