nixpkgs/pkgs/by-name/sc/schemaspy/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.2 KiB
Nix
Raw Normal View History

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