nixpkgs/pkgs/development/tools/flyway/default.nix
R. RyanTM e48aac54fd flyway: 5.1.1 -> 5.1.3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/flyway/versions.

These checks were done:

- built on NixOS
- /nix/store/iw4rl4pi38wjywnvw123qbr3y2nvq2b3-flyway-5.1.3/bin/flyway passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 5.1.3 with grep in /nix/store/iw4rl4pi38wjywnvw123qbr3y2nvq2b3-flyway-5.1.3
- directory tree listing: https://gist.github.com/106acf9a49f47aca074952bf0cc79dc7
- du listing: https://gist.github.com/51bdf3dc1d3334b3be4b67b14ea31955
2018-06-24 01:25:55 -07:00

30 lines
1.1 KiB
Nix

{ stdenv, fetchurl, jre_headless, makeWrapper }:
let
version = "5.1.3";
in
stdenv.mkDerivation {
name = "flyway-${version}";
src = fetchurl {
url = "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/5.1.3/flyway-commandline-${version}.tar.gz";
sha256 = "08nrjrpcb56f2mhghgjbvl7bfzvlgc81ykxzghq3kpslx5d560lm";
};
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.unix;
maintainers = [ maintainers.cmcdragonkai ];
};
}