copybara: pin to jdk11

This commit is contained in:
Luke Granger-Brown 2021-04-18 13:54:14 +00:00
parent be14b713bb
commit fd2b47acf9

View file

@ -3,6 +3,9 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
{ pkgs, ... }: { pkgs, ... }:
let
jdk = pkgs.openjdk11_headless;
in
pkgs.buildBazelPackage rec { pkgs.buildBazelPackage rec {
name = "copybara"; name = "copybara";
version = "master"; version = "master";
@ -30,7 +33,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.openjdk_headless}/bin/java $out/bin/copybara \ makeWrapper ${pkgs.jdk}/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"
''; '';
}; };