From 2867d1963aac8a5f587930644070b7d07e526db3 Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Thu, 2 Jan 2020 13:28:13 -0500 Subject: [PATCH] flyway: fix jarDirs option this is not a system property, but rather an argument to org.flaywaydb.commandline.Main.main(). therefore, it must come after, rather than before, the name of the main class. (otherwise it's interpreted as an argument to the VM itself.) flyway also expects the option and value to be separated by '=', not ' '. follows on to #76094 --- pkgs/development/tools/flyway/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/flyway/default.nix b/pkgs/development/tools/flyway/default.nix index 047bbd171f3..2c86cffeaab 100644 --- a/pkgs/development/tools/flyway/default.nix +++ b/pkgs/development/tools/flyway/default.nix @@ -19,8 +19,8 @@ makeWrapper "${jre_headless}/bin/java" $out/bin/flyway \ --add-flags "-Djava.security.egd=file:/dev/../dev/urandom" \ --add-flags "-classpath '$out/share/flyway/lib/*:$out/share/flyway/drivers/*'" \ - --add-flags "-DjarDirs '$out/share/flyway/jars'" \ - --add-flags "org.flywaydb.commandline.Main" + --add-flags "org.flywaydb.commandline.Main" \ + --add-flags "-jarDirs='$out/share/flyway/jars'" ''; meta = with stdenv.lib; { description = "Evolve your Database Schema easily and reliably across all your instances";