diff options
author | Tim Steinbach <tim.steinbach@exinda.com> | 2016-04-05 09:36:56 -0400 |
---|---|---|
committer | Tim Steinbach <tim.steinbach@exinda.com> | 2016-04-05 10:44:24 -0400 |
commit | 54d93ab15a46dd82aa8aa5ca7ec3e37088ba63d9 (patch) | |
tree | 8a83e15685d584b158b5454eb4cfd9231f82fd5d /pkgs/development/tools | |
parent | aa670eb503a24f64b1c6f5f1c532129809dffeae (diff) |
liquibase: init at 3.4.2
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/database/liquibase/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix new file mode 100644 index 0000000000000..7d89555085d79 --- /dev/null +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, jre, makeWrapper }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "liquibase"; + version = "3.4.2"; + + src = fetchurl { + url = "https://github.com/liquibase/liquibase/releases/download/${pname}-parent-${version}/${name}-bin.tar.gz"; + sha256 = "1kvxqjz8jmqpmb1clhp2asxmgfk6ynqjir8fldc321v9a5wnqby5"; + }; + + buildInputs = [ jre makeWrapper ]; + + unpackPhase = '' + tar xfz ${src} + ''; + + installPhase = '' + mkdir -p $out/{bin,lib,sdk} + mv ./* $out/ + wrapProgram $out/liquibase --prefix PATH ":" ${jre}/bin --set LIQUIBASE_HOME $out; + ln -s $out/liquibase $out/bin/liquibase + ''; + + meta = with stdenv.lib; { + description = "Version Control for your database"; + homepage = "http://www.liquibase.org/"; + license = licenses.asl20; + maintainers = with maintainers; [ nequissimus ]; + }; +} |