about summary refs log tree commit diff
path: root/third_party/gerrit/default.nix
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2020-11-27T17·39+0000
committerlukegb <lukegb@tvl.fyi>2020-11-29T02·26+0000
commit77be22549a436d0869d8f8c91c09e5b3219567b7 (patch)
tree8765087c25d6867723dcf00c3dd4df5c18907cf2 /third_party/gerrit/default.nix
parent36cf7bef24bbd5ffccc8bac47a8c4d10dd5a265c (diff)
chore(3p/gerrit): update to latest upstream HEAD r/1957
Change-Id: Ia7b17ca83ace164881a4dd8b0288741489bc467c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2164
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party/gerrit/default.nix')
-rw-r--r--third_party/gerrit/default.nix30
1 files changed, 8 insertions, 22 deletions
diff --git a/third_party/gerrit/default.nix b/third_party/gerrit/default.nix
index 84804db1e985..8879616310e3 100644
--- a/third_party/gerrit/default.nix
+++ b/third_party/gerrit/default.nix
@@ -16,7 +16,7 @@ let
     targetPkgs = pkgs: [
       (pkgs.bazel.override { enableNixHacks = true; })
       detzip
-      pkgs.jdk
+      pkgs.jdk11_headless
       pkgs.zlib
       pkgs.python
       pkgs.curl
@@ -28,15 +28,16 @@ let
     runScript = "/bin/bazel-run";
   };
   bazel = bazelTop // { override = x: bazelTop; };
-  version = "3.2.3-951-gd888625eb5";
+  version = "3.3.0-rc7-520-gdef99cd679";
 in
 pkgs.lib.makeOverridable pkgs.buildBazelPackage {
-  name = "gerrit-${version}";
+  pname = "gerrit";
+  inherit version;
 
   src = pkgs.fetchgit {
     url = "https://gerrit.googlesource.com/gerrit";
-    rev = "d888625eb5e1c91b257c9501924efdd9ae498422";
-    sha256 = "15dgjn5xqhvgwnc4klmh2m8f205x1fhchbs8x312lm2g2apdhdcc";
+    rev = "d36cf01b0f03eb6a555c915cc9d570e4b07d485b";
+    sha256 = "sha256:0a8qnwyhkl8amp34qlnym50787iaxg34k0f44dsyj6qlkj6aqx57";
     fetchSubmodules = true;
   };
   patches = [
@@ -56,28 +57,13 @@ pkgs.lib.makeOverridable pkgs.buildBazelPackage {
     "--disk_cache="
   ];
   removeRulesCC = false;
+  fetchConfigured = true;
 
   fetchAttrs = {
-    sha256 = "1f624gb1whmadf7qyv5l2yqw7pgbjlbfyk1gzkrcykhlwsxz9z0f";
+    sha256 = "sha256:042m2fzp6hhc76hiyvjakx2bcpbwsbf8gv20d6zifi237dgw6pj3";
     preBuild = ''
       rm .bazelversion
     '';
-    buildPhase = ''
-      runHook preBuild
-
-      BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 \
-      USER=homeless-shelter \
-      bazel \
-        --output_base="$bazelOut" \
-        --output_user_root="$bazelUserRoot" \
-        build --nobuild \
-        --loading_phase_threads=1 \
-        $bazelFlags \
-        $bazelFetchFlags \
-        $bazelTarget
-
-      runHook postBuild
-    '';
 
     installPhase = ''
       runHook preInstall