liquibase: 4.9.0 -> 4.17.2

Co-authored-by: Patrick Liu <patrick.liu@arista.com>
This commit is contained in:
Patrick Liu 2023-06-08 11:37:46 -07:00 committed by John Soo
parent 8a7d5c039c
commit efc6dbd2d7
No known key found for this signature in database
GPG key ID: D8A148F8CE4DDBC2

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 \