diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-22 10:11:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 10:11:22 +0100 |
commit | 3d6df9e8be0f428243d5b173b7ab163107e8c8c5 (patch) | |
tree | c5761219089c724a63459eea5d4d5531ee8fb8bd | |
parent | 907cb4c393177289b4add85eaec1e2aff9fce6be (diff) | |
parent | 0e4faa73d27666a24db387e684c45f2511ae86d2 (diff) | |
download | nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.tar nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.tar.gz nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.tar.bz2 nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.tar.lz nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.tar.xz nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.tar.zst nixpkgs-3d6df9e8be0f428243d5b173b7ab163107e8c8c5.zip |
Merge pull request #109637 from rycee/liquibase-psql
-rw-r--r-- | pkgs/development/tools/database/liquibase/default.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix index 6eb24a812aa..16e5fce1ebc 100644 --- a/pkgs/development/tools/database/liquibase/default.nix +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -1,11 +1,11 @@ -{ 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 { @@ -47,15 +47,15 @@ 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 = "https://www.liquibase.org/"; changelog = "https://raw.githubusercontent.com/liquibase/liquibase/v${version}/changelog.txt"; |