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" ''; };