2024-08-24 14:22:11 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
graphviz,
|
|
|
|
jre,
|
|
|
|
makeWrapper,
|
|
|
|
maven,
|
|
|
|
nix-update-script,
|
2022-07-20 22:24:12 +00:00
|
|
|
}:
|
2017-11-09 15:16:11 +00:00
|
|
|
|
2023-06-20 16:59:30 +00:00
|
|
|
maven.buildMavenPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "schemaspy";
|
2024-08-24 14:07:31 +00:00
|
|
|
version = "6.2.4";
|
2017-11-09 15:16:11 +00:00
|
|
|
|
2022-07-20 22:24:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schemaspy";
|
|
|
|
repo = "schemaspy";
|
2024-08-24 14:07:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-yEqhLpGrJ4hki8o+u+bigVXv+3YvEb8TvHDTYsEl8z4=";
|
2017-11-09 15:16:11 +00:00
|
|
|
};
|
|
|
|
|
2024-08-24 14:07:31 +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 = ''
|
2024-08-24 14:07:31 +00:00
|
|
|
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 \
|
2019-08-15 12:41:18 +00:00
|
|
|
--add-flags "-jar $out/share/java/${pname}-${version}.jar" \
|
2024-08-24 14:07:31 +00:00
|
|
|
--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 { };
|
|
|
|
|
2024-08-24 14:22:11 +00:00
|
|
|
meta = {
|
2022-01-03 15:53:12 +00:00
|
|
|
homepage = "https://schemaspy.org";
|
2017-11-09 15:16:11 +00:00
|
|
|
description = "Document your database simply and easily";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "schemaspy";
|
2024-08-24 14:22:11 +00:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
jraygauthier
|
|
|
|
anthonyroussel
|
|
|
|
];
|
2017-11-09 15:16:11 +00:00
|
|
|
};
|
|
|
|
}
|