2020-02-13 23:38:34 +01:00
|
|
|
# This program is used as a git post-update hook to trigger builds on
|
|
|
|
# sourcehut.
|
2020-06-26 23:22:01 +02:00
|
|
|
{ ciBuilds, depot, ... }:
|
2020-02-13 23:38:34 +01:00
|
|
|
|
2020-06-26 23:22:01 +02:00
|
|
|
let
|
|
|
|
inherit (builtins) toFile toJSON;
|
|
|
|
in depot.nix.buildTypedGo.program {
|
2020-02-13 23:38:34 +01:00
|
|
|
name = "besadii";
|
2020-06-18 03:33:23 +02:00
|
|
|
srcs = [ ./main.go2 ];
|
2020-06-26 23:22:01 +02:00
|
|
|
|
|
|
|
x_defs = {
|
|
|
|
"main.TargetList" = toFile "ci-targets.json" (toJSON ciBuilds.__evaluatable);
|
|
|
|
};
|
2020-02-13 23:38:34 +01:00
|
|
|
}
|