flyway: init at 4.2.0 (#28586)
* flyway: init at 4.2.0 * flyway: simplify install phase
This commit is contained in:
parent
ffa499f9ec
commit
9bdf89692c
2 changed files with 31 additions and 0 deletions
29
pkgs/development/tools/flyway/default.nix
Normal file
29
pkgs/development/tools/flyway/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, fetchurl, jre_headless, makeWrapper }:
|
||||
let
|
||||
version = "4.2.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "flyway-${version}";
|
||||
src = fetchurl {
|
||||
url = "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/4.2.0/flyway-commandline-${version}.tar.gz";
|
||||
sha256 = "1fxj760qx6apsz50p60c9n79k6bqkjcv2zfgab0awvmdvdy4k661";
|
||||
};
|
||||
buildInputs = [ makeWrapper ];
|
||||
dontBuild = true;
|
||||
dontStrip = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/flyway
|
||||
cp -r sql jars lib drivers $out/share/flyway
|
||||
makeWrapper "${jre_headless}/bin/java" $out/bin/flyway \
|
||||
--add-flags "-Djava.security.egd=file:/dev/../dev/urandom" \
|
||||
--add-flags "-cp '$out/share/flyway/lib/*:$out/share/flyway/drivers/*'" \
|
||||
--add-flags "org.flywaydb.commandline.Main"
|
||||
'';
|
||||
meta = with stdenv.lib; {
|
||||
description = "Evolve your Database Schema easily and reliably across all your instances";
|
||||
homepage = "https://flywaydb.org/";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = maintainers.cmcdragonkai;
|
||||
};
|
||||
}
|
|
@ -7879,6 +7879,8 @@ with pkgs;
|
|||
fltk13 = callPackage ../development/libraries/fltk { };
|
||||
fltk = self.fltk13;
|
||||
|
||||
flyway = callPackage ../development/tools/flyway { };
|
||||
|
||||
fplll = callPackage ../development/libraries/fplll {};
|
||||
fplll_20160331 = callPackage ../development/libraries/fplll/20160331.nix {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue