diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-08-04 10:43:07 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-08-04 10:43:07 +0000 |
commit | 62614cbef7da005c1eda8c9400160f6bcd6546b8 (patch) | |
tree | c2630f69080637987b68acb1ee8676d2681fe304 /pkgs/development/tools/database/liquibase/default.nix | |
parent | d9c82ed3044c72cecf01c6ea042489d30914577c (diff) | |
parent | e24069138dfec3ef94f211f1da005bb5395adc11 (diff) | |
download | nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.tar nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.tar.gz nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.tar.bz2 nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.tar.lz nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.tar.xz nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.tar.zst nixpkgs-62614cbef7da005c1eda8c9400160f6bcd6546b8.zip |
Merge branch 'nixpkgs-update' into master
Diffstat (limited to 'pkgs/development/tools/database/liquibase/default.nix')
-rw-r--r-- | pkgs/development/tools/database/liquibase/default.nix | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix index 104b1c46e09..2dc5c4e77c8 100644 --- a/pkgs/development/tools/database/liquibase/default.nix +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -1,23 +1,24 @@ -{ stdenv, fetchurl, jre, makeWrapper -, mysqlSupport ? true, mysql_jdbc ? null }: +{ lib, stdenv, fetchurl, jre, makeWrapper +, mysqlSupport ? true, mysql_jdbc +, postgresqlSupport ? true, postgresql_jdbc }: -assert mysqlSupport -> mysql_jdbc != null; - -with stdenv.lib; let - extraJars = optional mysqlSupport mysql_jdbc; + extraJars = + lib.optional mysqlSupport mysql_jdbc + ++ lib.optional postgresqlSupport postgresql_jdbc; in stdenv.mkDerivation rec { pname = "liquibase"; - version = "3.10.2"; + version = "4.4.1"; src = fetchurl { url = "https://github.com/liquibase/liquibase/releases/download/v${version}/${pname}-${version}.tar.gz"; - sha256 = "19wdflkp4n0pds4lkliagg8l5kf9db5f5bn39akhwasc4yj0g7j2"; + sha256 = "sha256-2Y/eRIkskuk+7GC/br178XzWTnP4iXSFfa5ybLjvqDA="; }; - buildInputs = [ jre makeWrapper ]; + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ jre ]; unpackPhase = '' tar xfz ${src} @@ -47,20 +48,20 @@ stdenv.mkDerivation rec { # taken from the executable script in the source CP="$out/liquibase.jar" ${addJars "$out/lib"} - ${concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)} + ${lib.concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)} - ${getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \ + ${lib.getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \ liquibase.integration.commandline.Main \''${1+"\$@"} EOF chmod +x $out/bin/liquibase ''; - meta = { + meta = with lib; { description = "Version Control for your database"; - homepage = "http://www.liquibase.org/"; + homepage = "https://www.liquibase.org/"; changelog = "https://raw.githubusercontent.com/liquibase/liquibase/v${version}/changelog.txt"; license = licenses.asl20; - maintainers = with maintainers; [ nequissimus ]; + maintainers = with maintainers; [ ]; platforms = with platforms; unix; }; } |