Skip to content

Commit

Permalink
Merge pull request NixOS#242696 from DevInsideYou/liquibase-fixes
Browse files Browse the repository at this point in the history
liquibase: include all jars from internal/lib instead of just a few
  • Loading branch information
kubukoz authored Jul 12, 2023
2 parents 3da3074 + 86115ca commit fdc66db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/development/tools/database/liquibase/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ stdenv.mkDerivation rec {
in
''
mkdir -p $out
mv ./{lib,licenses,internal/lib/liquibase-core.jar,internal/lib/postgresql.jar,internal/lib/picocli.jar} $out/
mv ./{lib,licenses} $out/
mkdir -p $out/internal/lib
mv ./internal/lib/*.jar $out/internal/lib/
mkdir -p $out/share/doc/${pname}-${version}
mv LICENSE.txt \
Expand All @@ -63,12 +66,12 @@ stdenv.mkDerivation rec {
#!/usr/bin/env bash
# taken from the executable script in the source
CP=""
${addJars "$out/internal/lib"}
${addJars "$out/lib"}
${addJars "$out"}
${lib.concatStringsSep "\n" (map (p: addJars "${p}/share/java") extraJars)}
${lib.getBin jre}/bin/java -cp "\$CP" \$JAVA_OPTS \
liquibase.integration.commandline.LiquibaseCommandLine \''${1+"\$@"}
liquibase.integration.commandline.LiquibaseCommandLine \''${1+"\$@"}
EOF
chmod +x $out/bin/liquibase
'';
Expand Down

0 comments on commit fdc66db

Please sign in to comment.