about summary refs log tree commit diff
path: root/pkgs/applications/misc/dbvisualizer/default.nix
blob: fd6ed0866cb3a1dbd483dfa9d7ed98444b02eff1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, jre, coreutils, makeWrapper }:

stdenv.mkDerivation {
  name = "dbvisualizer-9.2.5";

  src = fetchurl {
    url = https://www.dbvis.com/product_download/dbvis-9.2.5/media/dbvis_unix_9_2_5.tar.gz;
    sha256 = "e9d3374e96cf63903ebd9dae498c6b69403813eb8723187ed70f285dd7119327";
  };

  buildInputs = [ makeWrapper ];
  
  installPhase = ''
    mkdir -p $out/bin
    cp -a . $out
    ln -sf $out/dbvis $out/bin    
    wrapProgram $out/bin/dbvis --set INSTALL4J_JAVA_HOME ${jre}
  '';
  
  meta = {
    description = "The universal database tool";
    homepage = https://www.dbvis.com/;
    license = stdenv.lib.licenses.unfree;
  };
}