Merge pull request #237600 from awakesecurity/jsoo1/liquibase-upgrade

This commit is contained in:
Sandro 2023-06-14 15:02:56 +02:00 committed by GitHub
commit 285e7a7bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,11 +24,11 @@ in
stdenv.mkDerivation rec {
pname = "liquibase";
version = "4.9.0";
version = "4.17.2";
src = fetchurl {
url = "https://github.com/liquibase/liquibase/releases/download/v${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-1InRJzHqikm6Jd7z54TW6JFn3FO0LtStehWNaC+rdw8=";
sha256 = "0h5gqxgarzjb3c46ig6yxbs12czz3dha81b8gpywrg8602411sc5";
};
nativeBuildInputs = [ makeWrapper ];
@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
in
''
mkdir -p $out
mv ./{lib,licenses,liquibase.jar} $out/
mv ./{lib,licenses,internal/lib/liquibase-core.jar,internal/lib/postgresql.jar,internal/lib/picocli.jar} $out/
mkdir -p $out/share/doc/${pname}-${version}
mv LICENSE.txt \
@ -61,8 +61,9 @@ stdenv.mkDerivation rec {
cat > $out/bin/liquibase <<EOF
#!/usr/bin/env bash
# taken from the executable script in the source
CP="$out/liquibase.jar"
CP=""
${addJars "$out/lib"}
${addJars "$out"}
${lib.concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)}
${lib.getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \