Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 907cb4c39317
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3d6df9e8be0f
Choose a head ref
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 21, 2021

  1. liquibase: cleaning up

    rycee committed Jan 21, 2021
    Copy the full SHA
    62acc9a View commit details
  2. Copy the full SHA
    0e4faa7 View commit details

Commits on Jan 22, 2021

  1. Copy the full SHA
    3d6df9e View commit details
Showing with 9 additions and 9 deletions.
  1. +9 −9 pkgs/development/tools/database/liquibase/default.nix
18 changes: 9 additions & 9 deletions pkgs/development/tools/database/liquibase/default.nix
Original file line number Diff line number Diff line change
@@ -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";