2021-04-03 16:15:30 +02:00
|
|
|
{ depot, pkgs, ... }@args:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (import ../builder.nix args) buildGerritBazelPlugin;
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
buildGerritBazelPlugin rec {
|
2021-04-03 16:15:30 +02:00
|
|
|
name = "oauth";
|
2024-02-11 05:39:37 +01:00
|
|
|
depsOutputHash = "sha256:01z7rn8hnms3cp7mq27yk063lpy4pmqwpfrcc3cfl0r43k889zz3";
|
2021-04-03 16:15:30 +02:00
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://gerrit.googlesource.com/plugins/oauth";
|
2024-02-11 05:39:37 +01:00
|
|
|
rev = "b27cf3ea820eec2ddd22d217fc839261692ccdb0";
|
|
|
|
sha256 = "1m654ibgzprrhcl0wpzqrmq8drpgx6rzlw0ha16l1fi2zv5idkk2";
|
2021-04-03 16:15:30 +02:00
|
|
|
};
|
|
|
|
overlayPluginCmd = ''
|
|
|
|
chmod +w "$out" "$out/plugins/external_plugin_deps.bzl"
|
|
|
|
cp -R "${src}" "$out/plugins/${name}"
|
|
|
|
cp "${src}/external_plugin_deps.bzl" "$out/plugins/external_plugin_deps.bzl"
|
|
|
|
'';
|
|
|
|
}
|