From fd2b47acf9377d332d9f4e7dfe16c644d38f5c41 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 18 Apr 2021 13:54:14 +0000 Subject: [PATCH] copybara: pin to jdk11 --- nix/pkgs/copybara.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/copybara.nix b/nix/pkgs/copybara.nix index 24b02c1acc..c272f229ea 100644 --- a/nix/pkgs/copybara.nix +++ b/nix/pkgs/copybara.nix @@ -3,6 +3,9 @@ # SPDX-License-Identifier: Apache-2.0 { pkgs, ... }: +let + jdk = pkgs.openjdk11_headless; +in pkgs.buildBazelPackage rec { name = "copybara"; version = "master"; @@ -30,7 +33,7 @@ pkgs.buildBazelPackage rec { installPhase = '' mkdir -p $out/bin $out/share/java 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" ''; };