nixpkgs/pkgs/development/tools/database/liquibase/default.nix

34 lines
899 B
Nix
Raw Normal View History

2016-04-05 15:36:56 +02:00
{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "liquibase";
2016-11-16 01:03:40 +01:00
version = "3.5.3";
2016-04-05 15:36:56 +02:00
src = fetchurl {
url = "https://github.com/liquibase/liquibase/releases/download/${pname}-parent-${version}/${name}-bin.tar.gz";
2016-11-16 01:03:40 +01:00
sha256 = "04cpnfycv0ms70d70w8ijqp2yacj2svs7v3lk99z1bpq3rzx51gv";
2016-04-05 15:36:56 +02:00
};
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 ];
platforms = with platforms; unix;
2016-04-05 15:36:56 +02:00
};
}