Merge pull request #237600 from awakesecurity/jsoo1/liquibase-upgrade
This commit is contained in:
commit
285e7a7bb7
1 changed files with 5 additions and 4 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue