nixpkgs/pkgs/applications/misc/genesys/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

39 lines
995 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}/${finalAttrs.pname}-${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;
};
})