Merge pull request #31815 from jraygauthier/jrg/schemaspy_init

schemaspy: init at 6.0.0-rc2
This commit is contained in:
Jörg Thalheim 2017-11-19 15:12:20 +00:00 committed by GitHub
commit 528bf1ba0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ 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
];
nativeBuildInputs = [
makeWrapper
];
wrappedPath = lib.makeBinPath [
graphviz
];
installPhase = ''
install -D ${src} "$out/share/java/${name}.jar"
makeWrapper ${jre}/bin/java $out/bin/schemaspy \
--add-flags "-jar $out/share/java/${name}.jar" \
--prefix PATH : "$wrappedPath"
'';
meta = with lib; {
homepage = "http://schemaspy.org";
description = "Document your database simply and easily";
license = licenses.mit;
maintainers = with maintainers; [ jraygauthier ];
};
}

View file

@ -7598,6 +7598,8 @@ with pkgs;
shellcheck = haskell.lib.justStaticExecutables haskellPackages.ShellCheck;
schemaspy = callPackage ../development/tools/database/schemaspy { };
shncpd = callPackage ../tools/networking/shncpd { };
sigrok-cli = callPackage ../development/tools/sigrok-cli { };