nixpkgs/pkgs/development/tools/database/schemaspy/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

41 lines
945 B
Nix

{ lib, stdenv, fetchurl, jre, makeWrapper, graphviz }:
stdenv.mkDerivation rec {
version = "6.0.0-rc2";
pname = "schemaspy";
src = fetchurl {
url = "https://github.com/schemaspy/schemaspy/releases/download/v${version}/${pname}-${version}.jar";
sha256 = "0ph1l62hy163m2hgybhkccqbcj6brna1vdbr7536zc37lzjxq9rn";
};
dontUnpack = true;
buildInputs = [
jre
];
nativeBuildInputs = [
makeWrapper
];
wrappedPath = lib.makeBinPath [
graphviz
];
installPhase = ''
install -D ${src} "$out/share/java/${pname}-${version}.jar"
makeWrapper ${jre}/bin/java $out/bin/schemaspy \
--add-flags "-jar $out/share/java/${pname}-${version}.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 ];
};
}