2017-11-09 15:16:11 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper, graphviz }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-06 13:02:25 +00:00
|
|
|
version = "6.1.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "schemaspy";
|
2017-11-09 15:16:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://github.com/schemaspy/schemaspy/releases/download/v${version}/${pname}-${version}.jar";
|
2020-01-06 13:02:25 +00:00
|
|
|
sha256 = "0lgz6b17hx9857fb2l03ggz8y3n8a37vrcsylif0gmkwj1v4qgl7";
|
2017-11-09 15:16:11 +00:00
|
|
|
};
|
|
|
|
|
2019-06-19 16:45:34 +01:00
|
|
|
dontUnpack = true;
|
2017-11-09 15:16:11 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
jre
|
|
|
|
];
|
|
|
|
|
2017-11-19 15:11:34 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2017-11-09 15:16:11 +00:00
|
|
|
|
|
|
|
wrappedPath = lib.makeBinPath [
|
|
|
|
graphviz
|
|
|
|
];
|
|
|
|
|
2017-11-19 15:11:34 +00:00
|
|
|
installPhase = ''
|
2019-08-15 13:41:18 +01:00
|
|
|
install -D ${src} "$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 13:41:18 +01:00
|
|
|
--add-flags "-jar $out/share/java/${pname}-${version}.jar" \
|
2017-11-19 15:11:34 +00:00
|
|
|
--prefix PATH : "$wrappedPath"
|
|
|
|
'';
|
2017-11-09 15:16:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://schemaspy.org";
|
|
|
|
description = "Document your database simply and easily";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|