about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRaymond Gauthier <jraygauthier@gmail.com>2017-11-09 10:16:11 -0500
committerRaymond Gauthier <jraygauthier@gmail.com>2017-11-18 23:08:29 -0500
commit06c7c05cc24bd1181e93bac72d5791d2807a421b (patch)
treef370400b05200300b461ed907dd4e93567f9805e
parent265f4c58a140315cf2a092901dce9e12c32e5129 (diff)
downloadnixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.tar
nixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.tar.gz
nixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.tar.bz2
nixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.tar.lz
nixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.tar.xz
nixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.tar.zst
nixlib-06c7c05cc24bd1181e93bac72d5791d2807a421b.zip
schemaspy: Init at 6.0.0-rc2
-rw-r--r--pkgs/development/tools/database/schemaspy/default.nix43
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/tools/database/schemaspy/default.nix b/pkgs/development/tools/database/schemaspy/default.nix
new file mode 100644
index 000000000000..a1d355259865
--- /dev/null
+++ b/pkgs/development/tools/database/schemaspy/default.nix
@@ -0,0 +1,43 @@
+{ 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
+    makeWrapper
+  ];
+
+  buildPhase = "true";
+
+  wrappedPath = lib.makeBinPath [
+    graphviz
+  ];
+
+  installPhase =
+    ''
+      mkdir -p "$out/share/java"
+      cp ${src} "$out/share/java/${name}.jar"
+
+      mkdir -p $out/bin
+      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 ];
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index f5b2dc79ce65..f7ba3baccc75 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7597,6 +7597,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 { };