depot/third_party/nixpkgs/pkgs/applications/misc/genesys/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

38 lines
983 B
Nix

{ lib, stdenv, fetchurl, jre, graphviz, makeWrapper }:
stdenv.mkDerivation (finalAttrs: {
pname = "genesys";
version = "1.0.7";
src = fetchurl {
url = "https://github.com/mrlem/genesys/releases/download/v${finalAttrs.version}/genesys-${finalAttrs.version}.tar.gz";
hash = "sha256-I1lEVvwRiGf1f4zUtqKhSb+it/nC8WAmw5S6edquOj8=";
};
nativeBuildInputs = [ makeWrapper ];
# The package is distributed as a prebuilt JAVA binary
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out
mv bin lib $out
wrapProgram $out/bin/${finalAttrs.pname} \
--set JAVA_HOME "${jre.home}" \
--prefix PATH : "${graphviz}/bin"
runHook postInstall
'';
meta = {
description = "Simple family tree generator that scales";
homepage = "https://github.com/mrlem/genesys";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ rogarb ];
platforms = lib.platforms.all;
};
})