2020-07-26 14:51:49 +02:00
|
|
|
{ depot, pkgs, ... }@args:
|
2020-06-13 20:25:20 +02:00
|
|
|
|
2020-07-26 14:51:49 +02:00
|
|
|
let
|
|
|
|
inherit (import ./builder.nix args) buildGerritBazelPlugin;
|
2021-03-21 13:46:01 +01:00
|
|
|
in depot.nix.utils.drvTargets {
|
2020-06-13 20:25:20 +02:00
|
|
|
# https://gerrit.googlesource.com/plugins/owners
|
2020-07-26 14:51:49 +02:00
|
|
|
owners = buildGerritBazelPlugin rec {
|
|
|
|
name = "owners";
|
2021-04-13 12:21:42 +02:00
|
|
|
depsOutputHash = "sha256:162hxk2qsix0x1aarhsaqi52q7j7mjpyk8af57w0a012i55ryqqa";
|
2020-07-26 14:51:49 +02:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/owners";
|
2021-04-06 11:27:20 +02:00
|
|
|
rev = "f3335231b98e14664fdd1b325486bb0824800ac3";
|
|
|
|
sha256 = "sha256:0dqf36wn6gnkwia3529dwlcib2np78dgsjs7dymg5isy1i8p655f";
|
2020-07-26 14:51:49 +02:00
|
|
|
};
|
|
|
|
overlayPluginCmd = ''
|
|
|
|
chmod +w "$out" "$out/plugins/external_plugin_deps.bzl"
|
|
|
|
cp -R "${src}/owners" "$out/plugins/owners"
|
|
|
|
cp "${src}/external_plugin_deps.bzl" "$out/plugins/external_plugin_deps.bzl"
|
|
|
|
cp -R "${src}/owners-common" "$out/owners-common"
|
|
|
|
'';
|
|
|
|
};
|
2020-07-26 14:53:04 +02:00
|
|
|
|
|
|
|
# https://gerrit.googlesource.com/plugins/checks
|
|
|
|
checks = buildGerritBazelPlugin {
|
|
|
|
name = "checks";
|
2021-04-13 12:21:42 +02:00
|
|
|
depsOutputHash = "sha256:1262xhl2z1pml6iimhnjm5l3gzddz0rjj6sjq53212dk2dxs5y1b";
|
2020-07-26 14:53:04 +02:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/checks";
|
2021-04-06 11:27:20 +02:00
|
|
|
rev = "990e936b1e050c4fe7ac3e590bdb5cfff0311232";
|
|
|
|
sha256 = "sha256:0cgrwrimsxx0dnqvp0akv5pz17hy743lhkqvsks60fijb34ps54s";
|
2020-07-26 14:53:04 +02:00
|
|
|
};
|
|
|
|
};
|
2020-06-13 20:25:20 +02:00
|
|
|
}
|