tvl-depot/ops/besadii/default.nix
Vincent Ambo b094e65bfc feat(besadii): Adapt into a Gerrit ref-updated-hook
Besadii was previously invoked as a git post-update hook, but Gerrit
does not use these hooks and instead has its own concept of hooks.

This change adapts besadii to be compatible with the way Gerrit hooks
are invoked (arguments being passed as flags, rather than via stdin).

Change-Id: I487b3a9e15810583bc5442fdc024ee2771c580cb
2020-06-13 06:03:45 +01:00

8 lines
170 B
Nix

# This program is used as a git post-update hook to trigger builds on
# sourcehut.
{ depot, ... }:
depot.buildGo.program {
name = "besadii";
srcs = [ ./main.go ];
}