diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix index 2de4a7acc6eac..3309dbd418623 100644 --- a/pkgs/development/tools/database/liquibase/default.nix +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -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 \ @@ -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 '';