Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
983 B
Nix
45 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/genesys \
|
|
--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;
|
|
};
|
|
})
|