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;
|
|
|
|
in
|
|
|
|
{
|
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";
|
|
|
|
depsOutputHash = "0j60yn65kn27s7cjkj3z6irymq7j7rj3q5h3n6xfrs5inm4md2ad";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/owners";
|
|
|
|
rev = "17817c9e319073c03513f9d5177b6142b8fd567b";
|
|
|
|
sha256 = "1p089shybp50svckcq51d0hfisjvbggndmvmhh8pvzvi6w8n9d89";
|
|
|
|
deepClone = true;
|
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
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";
|
|
|
|
depsOutputHash = "1nk63ahlynqn5my7lzy7vsax07n585ndmvbnz2xbwkppl1m7j56l";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/checks";
|
|
|
|
rev = "36d9e5c61b95ade98883ded5eb1e168c28ef99bf";
|
|
|
|
sha256 = "03abn4m9x8cinx86c41hrazg0kgwvjfak3w155sca1ikq4605pma";
|
|
|
|
deepClone = true;
|
|
|
|
leaveDotGit = true;
|
|
|
|
};
|
|
|
|
};
|
2020-06-13 20:25:20 +02:00
|
|
|
}
|