depot/third_party/nixpkgs/pkgs/by-name/sc/schemaspy/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

53 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
graphviz,
jre,
makeWrapper,
maven,
nix-update-script,
}:
maven.buildMavenPackage rec {
pname = "schemaspy";
version = "6.2.4";
src = fetchFromGitHub {
owner = "schemaspy";
repo = "schemaspy";
rev = "refs/tags/v${version}";
hash = "sha256-yEqhLpGrJ4hki8o+u+bigVXv+3YvEb8TvHDTYsEl8z4=";
};
mvnParameters = "-Dmaven.test.skip=true -Dmaven.buildNumber.skip=true";
mvnHash = "sha256-LCPRiY/DDSUnLGnaFUS9PPKnh3TmSyAOqKfEKRLRjpg=";
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
runHook preInstall
install -D target/${pname}-${version}-app.jar $out/share/java/${pname}-${version}.jar
makeWrapper ${jre}/bin/java $out/bin/schemaspy \
--add-flags "-jar $out/share/java/${pname}-${version}.jar" \
--prefix PATH : ${lib.makeBinPath [ graphviz ]}
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://schemaspy.org";
description = "Document your database simply and easily";
mainProgram = "schemaspy";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [
jraygauthier
anthonyroussel
];
};
}