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-03 16:13:53 +02:00
|
|
|
depsOutputHash = "sha256:1cffbbn687dcl46jm70fd5h6an7jwalssvy0y1aqnhrwmbr4gwi9";
|
2020-07-26 14:51:49 +02:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/owners";
|
|
|
|
rev = "17817c9e319073c03513f9d5177b6142b8fd567b";
|
2021-04-03 16:13:53 +02:00
|
|
|
sha256 = "sha256:06j1wp5xpwabmzyhjjl5rcmgsxqi8ffzgzf8avbr61qzgh76f22n";
|
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-03-21 13:38:12 +01:00
|
|
|
depsOutputHash = "sha256:1s4ldzny9f8vpp96sff8zy2kigz3hi560ikrgyp5630ffrc8affq";
|
2020-07-26 14:53:04 +02:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/checks";
|
2020-11-27 18:39:35 +01:00
|
|
|
rev = "ab49a63f5c159bda42d9ad1bdb9286bede6c5de4";
|
2021-04-03 16:13:53 +02:00
|
|
|
sha256 = "sha256:0plvgx61pwksfdr4fpclzm9pxrn4pcydk08jp4y60qd3qlydks3j";
|
2020-07-26 14:53:04 +02:00
|
|
|
};
|
|
|
|
};
|
2020-06-13 20:25:20 +02:00
|
|
|
}
|