diff options
author | Julien Debon <julien.debon@tweag.io> | 2022-04-26 09:55:14 +0200 |
---|---|---|
committer | Julien Debon <julien.debon@tweag.io> | 2022-04-26 09:55:14 +0200 |
commit | 3ffe1ccca03d732f4b5cb435ed4be7cef86a29c2 (patch) | |
tree | 793d4fd73a5b6feb9cb5c440dd290feff6cf1543 /pkgs/development/tools/database/liquibase | |
parent | a7c93695a5254a0d9fa73c6f9e7628791a9c31a9 (diff) |
liquibase: add support for Amazon Redshift
The Liquibase package already provided PostgreSQL and MySQL support, this commit also adds support for Amazon Redshift. As per Liquibase Redshift documentation, 2 JARs must be added to the classpath: * Redshift JDBC * Liquibase Redshift extension JAR
Diffstat (limited to 'pkgs/development/tools/database/liquibase')
-rw-r--r-- | pkgs/development/tools/database/liquibase/default.nix | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix index 87a66f9bdab79..0d7130f7def3e 100644 --- a/pkgs/development/tools/database/liquibase/default.nix +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -1,11 +1,25 @@ -{ lib, stdenv, fetchurl, jre, makeWrapper -, mysqlSupport ? true, mysql_jdbc -, postgresqlSupport ? true, postgresql_jdbc }: +{ lib +, stdenv +, fetchurl +, jre +, makeWrapper +, mysqlSupport ? true +, mysql_jdbc +, postgresqlSupport ? true +, postgresql_jdbc +, redshiftSupport ? true +, redshift_jdbc +, liquibase_redshift_extension +}: let extraJars = lib.optional mysqlSupport mysql_jdbc - ++ lib.optional postgresqlSupport postgresql_jdbc; + ++ lib.optional postgresqlSupport postgresql_jdbc + ++ lib.optionals redshiftSupport [ + redshift_jdbc + liquibase_redshift_extension + ]; in stdenv.mkDerivation rec { @@ -30,7 +44,8 @@ stdenv.mkDerivation rec { CP="\$CP":"\$jar" done ''; - in '' + in + '' mkdir -p $out mv ./{lib,licenses,liquibase.jar} $out/ @@ -54,7 +69,7 @@ stdenv.mkDerivation rec { liquibase.integration.commandline.Main \''${1+"\$@"} EOF chmod +x $out/bin/liquibase - ''; + ''; meta = with lib; { description = "Version Control for your database"; |