2017-11-09 16:16:11 +01:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper, graphviz }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.0.0-rc2";
|
|
|
|
name = "schemaspy-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/schemaspy/schemaspy/releases/download/v${version}/${name}.jar";
|
|
|
|
sha256 = "0ph1l62hy163m2hgybhkccqbcj6brna1vdbr7536zc37lzjxq9rn";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
jre
|
|
|
|
];
|
|
|
|
|
2017-11-19 16:11:34 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2017-11-09 16:16:11 +01:00
|
|
|
|
|
|
|
wrappedPath = lib.makeBinPath [
|
|
|
|
graphviz
|
|
|
|
];
|
|
|
|
|
2017-11-19 16:11:34 +01:00
|
|
|
installPhase = ''
|
|
|
|
install -D ${src} "$out/share/java/${name}.jar"
|
2017-11-09 16:16:11 +01:00
|
|
|
|
2017-11-19 16:11:34 +01:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/schemaspy \
|
|
|
|
--add-flags "-jar $out/share/java/${name}.jar" \
|
|
|
|
--prefix PATH : "$wrappedPath"
|
|
|
|
'';
|
2017-11-09 16:16:11 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://schemaspy.org";
|
|
|
|
description = "Document your database simply and easily";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|