forked from mirrors/nixpkgs
3414e67a9d
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/g01xk8pg48hnpaazi1kl0rhc2qzln0ds-flyway-5.1.1/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.1 with grep in /nix/store/g01xk8pg48hnpaazi1kl0rhc2qzln0ds-flyway-5.1.1 - directory tree listing: https://gist.github.com/4d37780b7850ab73ad0c8dadf82a0a5b - du listing: https://gist.github.com/40c8567fb139fa68811ad82c15399369
30 lines
1.1 KiB
Nix
30 lines
1.1 KiB
Nix
{ stdenv, fetchurl, jre_headless, makeWrapper }:
|
|
let
|
|
version = "5.1.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "flyway-${version}";
|
|
src = fetchurl {
|
|
url = "https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/5.1.1/flyway-commandline-${version}.tar.gz";
|
|
sha256 = "0kdi7m5rwlik0d2rn9s3siqmc83xfkhhsdxw3g7r1mvk2ivscb7f";
|
|
};
|
|
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 ];
|
|
};
|
|
}
|