2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 13:43:22 +00:00
nixpkgs/pkgs/development/tools/flyway/default.nix
R. RyanTM 06a6d1cb33 flyway: 5.1.3 -> 5.1.4 ()
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/1g49jlhy30sijz0js59lfnrg8k3mqvjf-flyway-5.1.4/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.4 with grep in /nix/store/1g49jlhy30sijz0js59lfnrg8k3mqvjf-flyway-5.1.4
- directory tree listing: https://gist.github.com/869e3436d0f2761951eabdad68c0319d
- du listing: https://gist.github.com/6e8110c905ef757a084d835bb3181c41
2018-07-13 23:55:14 +02:00

30 lines
1.1 KiB
Nix

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