copybara: depend on jdk14_headless instead of 'headful' jre

This commit is contained in:
Luke Granger-Brown 2020-10-18 13:26:29 +00:00
parent 4e14ee8111
commit 7b80b817dd

View file

@ -30,7 +30,7 @@ pkgs.buildBazelPackage rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin $out/share/java mkdir -p $out/bin $out/share/java
install -Dm755 bazel-bin/java/com/google/copybara/copybara_deploy.jar $out/share/java/copybara.jar install -Dm755 bazel-bin/java/com/google/copybara/copybara_deploy.jar $out/share/java/copybara.jar
makeWrapper ${pkgs.jre}/bin/java $out/bin/copybara \ makeWrapper ${pkgs.jdk14_headless}/bin/java $out/bin/copybara \
--add-flags "-cp $out/share/java/copybara.jar com.google.copybara.Main" --add-flags "-cp $out/share/java/copybara.jar com.google.copybara.Main"
''; '';
}; };