about summary refs log tree commit diff
path: root/ops/besadii/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ops/besadii/default.nix')
-rw-r--r--ops/besadii/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/ops/besadii/default.nix b/ops/besadii/default.nix
new file mode 100644
index 000000000000..31f2705d7327
--- /dev/null
+++ b/ops/besadii/default.nix
@@ -0,0 +1,12 @@
+# This program is used as a git post-update hook to trigger builds on
+# sourcehut.
+{ depot, ... }:
+
+depot.buildGo.program {
+  name = "besadii";
+  srcs = [ ./main.go ];
+
+  x_defs = {
+    "main.gitBin" = "${depot.third_party.git}/bin/git";
+  };
+}