From c05bf02a856121cdf40f77a21cdb26667d449615 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 7 Jul 2024 19:12:28 +0100 Subject: chore(3p/gerrit): create buildBazelPackageNG and migrate gerrit to it This bumps Gerrit to 3.10.0, and also introduces a new mechanism for building it that should hopefully have some more stable hashes than the previous bodgery. In this world, we only cache what we explicitly want to. There are some hooks implemented for `rules_java` and `rules_nodejs` (before version 6) that force use of local binaries; this means we can drop the use of the FHSUserEnv and use the java and nodejs binaries provided by nixpkgs instead. detzip is deleted; it hasn't been used in yonks. We also add https://gerrit-review.googlesource.com/c/gerrit/+/431977, which bumps the SSHd version so that we can have U2F-based SSH keys. Change-Id: Ie12a9a33bbb1e4bd96aa252580aca3b8bc4a1205 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11963 Reviewed-by: lukegb Autosubmit: lukegb Tested-by: BuildkiteCI --- nix/buildBazelPackageNG/bazelRulesJavaHook/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nix/buildBazelPackageNG/bazelRulesJavaHook/default.nix (limited to 'nix/buildBazelPackageNG/bazelRulesJavaHook/default.nix') diff --git a/nix/buildBazelPackageNG/bazelRulesJavaHook/default.nix b/nix/buildBazelPackageNG/bazelRulesJavaHook/default.nix new file mode 100644 index 000000000000..eb8332e44eef --- /dev/null +++ b/nix/buildBazelPackageNG/bazelRulesJavaHook/default.nix @@ -0,0 +1,8 @@ +{ makeSetupHook }: + +makeSetupHook { + name = "rules_java_bazel_hook"; + substitutions = { + local_java = ./local_java; + }; +} ./setup-hook.sh -- cgit 1.4.1