about summary refs log tree commit diff
path: root/fun/clbot/backoffutil/default.nix
diff options
context:
space:
mode:
authorLuke Granger-Brown <hg@lukegb.com>2020-06-14T20·47+0100
committerlukegb <lukegb@tvl.fyi>2020-06-15T16·48+0000
commit9099497185b5dd68933782a92336815d82454dbb (patch)
treec08a1c9df81802944a6013e2e2c5d18e002d49d9 /fun/clbot/backoffutil/default.nix
parent5acd03817a9ed5f3b597960ec2f192740a586631 (diff)
chore(clbot): Refactor backoff utility into a separate package. r/963
It'll be reused by the IRC side of things too.

Change-Id: I3d84f3fd5fca6a6d948f331143b14f096d10675d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/342
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'fun/clbot/backoffutil/default.nix')
-rw-r--r--fun/clbot/backoffutil/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/fun/clbot/backoffutil/default.nix b/fun/clbot/backoffutil/default.nix
new file mode 100644
index 000000000000..78585da236e3
--- /dev/null
+++ b/fun/clbot/backoffutil/default.nix
@@ -0,0 +1,14 @@
+{ depot, ... }:
+
+let
+  inherit (depot.third_party) gopkgs;
+in
+depot.nix.buildGo.package {
+  name = "code.tvl.fyi/fun/clbot/backoffutil";
+  srcs = [
+    ./backoffutil.go
+  ];
+  deps = [
+    gopkgs."github.com".cenkalti.backoff.gopkg
+  ];
+}