diff options
author | Luke Granger-Brown <git@lukegb.com> | 2021-04-03T14·15+0000 |
---|---|---|
committer | lukegb <lukegb@tvl.fyi> | 2021-04-03T19·11+0000 |
commit | 81a7bd4765ac452f455ad817a08ef8f2532fe017 (patch) | |
tree | 8b527d8c3e02f7decc4fc4d3da710308e0411e94 /third_party/gerrit_plugins/builder.nix | |
parent | ed7240ade52532048e08ff9be80b0fc99ea1e82c (diff) |
chore(3p/gerrit_plugins): init oauth r/2415
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 <mail@tazj.in>
Diffstat (limited to 'third_party/gerrit_plugins/builder.nix')
-rw-r--r-- | third_party/gerrit_plugins/builder.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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; })); } |