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-11-23 14:31:17 +01:00
|
|
|
in
|
|
|
|
depot.nix.readTree.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";
|
2022-09-11 18:34:47 +02:00
|
|
|
depsOutputHash = "sha256:129k0jz2pxfl3yvdd95wvvkcjjmmw6jy4g45ss1pgvb9dan0ca6j";
|
2020-07-26 14:51:49 +02:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/owners";
|
2022-09-11 18:34:47 +02:00
|
|
|
rev = "070820d2df4f253c7c470f2cbe68da8043e163d0";
|
|
|
|
sha256 = "sha256:0mw2fff3dca1xv2cvg9hsy5zw1h5gjidb5fh95x6yaj9g9lp0mxq";
|
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-06-13 20:25:20 +02:00
|
|
|
}
|