chore(3p/gerrit_plugins): add machinery for compiling Gerrit plugins from source

This looks particularly obnoxious for the owners plugin, because it's
actually two plugins with a common library in the same repo. Other
plugins are much cleaner to deal with (hence the default for
overlayPluginCmd).

Change-Id: Ibb9588c8a29b63e8509436fcbb70054e89349712
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1461
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Luke Granger-Brown 2020-07-26 13:51:49 +01:00 committed by lukegb
parent 2b7fe6f957
commit e780435d09
4 changed files with 58 additions and 10 deletions

View file

@ -30,17 +30,17 @@ let
bazel = bazelTop // { override = x: bazelTop; };
version = "3.2.2-1002-gea26b5ee7a";
in
pkgs.buildBazelPackage {
pkgs.lib.makeOverridable pkgs.buildBazelPackage {
name = "gerrit-${version}";
src = (pkgs.fetchgit {
src = pkgs.fetchgit {
url = "https://gerrit.googlesource.com/gerrit";
rev = "ea26b5ee7a1c1e4042525d308678570101d4d4d6";
sha256 = "1bndmk7namb81zkscmpvf8ygwrj0wh842xbj0irgbm5w2xwdzkch";
fetchSubmodules = true;
deepClone = true;
leaveDotGit = true;
});
};
patches = [
./0001-Use-detzip-in-download_bower.py.patch
./0002-Syntax-highlight-nix.patch