at 18.03-beta 41 lines 922 B view raw
1{ lib, stdenv, fetchurl, jre, makeWrapper, graphviz }: 2 3stdenv.mkDerivation rec { 4 version = "6.0.0-rc2"; 5 name = "schemaspy-${version}"; 6 7 src = fetchurl { 8 url = "https://github.com/schemaspy/schemaspy/releases/download/v${version}/${name}.jar"; 9 sha256 = "0ph1l62hy163m2hgybhkccqbcj6brna1vdbr7536zc37lzjxq9rn"; 10 }; 11 12 unpackPhase = "true"; 13 14 buildInputs = [ 15 jre 16 ]; 17 18 nativeBuildInputs = [ 19 makeWrapper 20 ]; 21 22 wrappedPath = lib.makeBinPath [ 23 graphviz 24 ]; 25 26 installPhase = '' 27 install -D ${src} "$out/share/java/${name}.jar" 28 29 makeWrapper ${jre}/bin/java $out/bin/schemaspy \ 30 --add-flags "-jar $out/share/java/${name}.jar" \ 31 --prefix PATH : "$wrappedPath" 32 ''; 33 34 meta = with lib; { 35 homepage = "http://schemaspy.org"; 36 description = "Document your database simply and easily"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ jraygauthier ]; 39 }; 40} 41