about summary refs log tree commit diff
path: root/monzo_ynab/tokens.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-02-09T13·50+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-02-10T10·06+0000
commit248c7a24c65a34fc9cdda0492dd5d5ad2f69c810 (patch)
tree28e98dea587a4738dd0e833f869d9190f8f97efc /monzo_ynab/tokens.nix
parenta5ef9b11a6f9d0214820009151751d183c6eb75a (diff)
Nixify tokens.go
- Package tokens.go with Nix
- Add monzo_ynab.{job,tokens} to shell.nix
Diffstat (limited to 'monzo_ynab/tokens.nix')
-rw-r--r--monzo_ynab/tokens.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/monzo_ynab/tokens.nix b/monzo_ynab/tokens.nix
new file mode 100644
index 000000000000..6b932e3975ad
--- /dev/null
+++ b/monzo_ynab/tokens.nix
@@ -0,0 +1,15 @@
+{
+  depot ? import <depot> {},
+  briefcase ? import <briefcase> {},
+  ...
+}:
+
+depot.buildGo.program {
+  name = "token-server";
+  srcs = [
+    ./tokens.go
+  ];
+  deps = with briefcase.gopkgs; [
+    kv
+  ];
+}