about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ci-builds.nix1
-rw-r--r--third_party/gerrit_plugins/default.nix13
2 files changed, 14 insertions, 0 deletions
diff --git a/ci-builds.nix b/ci-builds.nix
index 6b7f48f44d97..01dd6d58e9e6 100644
--- a/ci-builds.nix
+++ b/ci-builds.nix
@@ -70,6 +70,7 @@ in lib.fix (self: {
 
   gerrit = with depot.third_party.gerrit_plugins; [
     depot.third_party.gerrit
+    checks
     owners
   ];
 
diff --git a/third_party/gerrit_plugins/default.nix b/third_party/gerrit_plugins/default.nix
index 929d1bba9f1c..e010d4479cbc 100644
--- a/third_party/gerrit_plugins/default.nix
+++ b/third_party/gerrit_plugins/default.nix
@@ -22,4 +22,17 @@ in
       cp -R "${src}/owners-common" "$out/owners-common"
     '';
   };
+
+  # https://gerrit.googlesource.com/plugins/checks
+  checks = buildGerritBazelPlugin {
+    name = "checks";
+    depsOutputHash = "1nk63ahlynqn5my7lzy7vsax07n585ndmvbnz2xbwkppl1m7j56l";
+    src = pkgs.fetchgit {
+      url = "https://gerrit.googlesource.com/plugins/checks";
+      rev = "36d9e5c61b95ade98883ded5eb1e168c28ef99bf";
+      sha256 = "03abn4m9x8cinx86c41hrazg0kgwvjfak3w155sca1ikq4605pma";
+      deepClone = true;
+      leaveDotGit = true;
+    };
+  };
 }