forked from the-distro/infra
raito
98a33e4300
With: - A package hierarchy - A source-based Gerrit deployment Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
17 lines
581 B
Nix
17 lines
581 B
Nix
{ buildGerritBazelPlugin, fetchgit }:
|
|
|
|
buildGerritBazelPlugin rec {
|
|
name = "oauth";
|
|
depsOutputHash = "sha256-4/+E0BwkA+rYYCy7y3G9xF86DJj+CFzPZUNXC5HN5wc=";
|
|
src = fetchgit {
|
|
url = "https://gerrit.googlesource.com/plugins/oauth";
|
|
rev = "b27cf3ea820eec2ddd22d217fc839261692ccdb0";
|
|
sha256 = "1m654ibgzprrhcl0wpzqrmq8drpgx6rzlw0ha16l1fi2zv5idkk2";
|
|
};
|
|
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"
|
|
'';
|
|
}
|