about summary refs log tree commit diff
path: root/monzo_ynab
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
parenta5ef9b11a6f9d0214820009151751d183c6eb75a (diff)
Nixify tokens.go
- Package tokens.go with Nix
- Add monzo_ynab.{job,tokens} to shell.nix
Diffstat (limited to 'monzo_ynab')
-rw-r--r--monzo_ynab/shell.nix8
-rw-r--r--monzo_ynab/tokens.nix15
2 files changed, 22 insertions, 1 deletions
diff --git a/monzo_ynab/shell.nix b/monzo_ynab/shell.nix
index 836718d85f29..be185dd1d6d9 100644
--- a/monzo_ynab/shell.nix
+++ b/monzo_ynab/shell.nix
@@ -1,9 +1,15 @@
-{ pkgs ? import <nixpkgs> {}, ... }:
+{
+  pkgs ? import <nixpkgs> {},
+  briefcase ? import <briefcase> {},
+  ...
+}:
 
 pkgs.mkShell {
   buildInputs = [
     pkgs.go
     pkgs.goimports
     pkgs.godef
+    briefcase.monzo_ynab.job
+    briefcase.monzo_ynab.tokens
   ];
 }
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
+  ];
+}