From 81a7bd4765ac452f455ad817a08ef8f2532fe017 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 3 Apr 2021 14:15:30 +0000 Subject: chore(3p/gerrit_plugins): init oauth Add the OAuth gerrit plugin to our mini collection of Gerrit plugins. This includes a patch to make the plugin work correctly with CAS 6.x, which has changed the attributes into a JSON object with the attributes nested inside, instead of a JSON list. Change-Id: I4741f137cca9c8eb45b9ea660fb4cbf6962be9a4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2782 Tested-by: BuildkiteCI Reviewed-by: tazjin --- third_party/gerrit_plugins/builder.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'third_party/gerrit_plugins/builder.nix') diff --git a/third_party/gerrit_plugins/builder.nix b/third_party/gerrit_plugins/builder.nix index 7676f5020848..ff1754e088f3 100644 --- a/third_party/gerrit_plugins/builder.nix +++ b/third_party/gerrit_plugins/builder.nix @@ -7,6 +7,7 @@ overlayPluginCmd ? '' cp -R "${src}" "$out/plugins/${name}" '', + postPatch ? "", }: ((depot.third_party.gerrit.override { name = "${name}.jar"; @@ -24,5 +25,9 @@ installPhase = '' cp "bazel-bin/plugins/${name}/${name}.jar" "$out" ''; + postPatch = if super ? postPatch then '' + ${super.postPatch} + ${postPatch} + '' else postPatch; })); } -- cgit 1.4.1