diff options
Diffstat (limited to 'monzo_ynab')
-rw-r--r-- | monzo_ynab/shell.nix | 8 | ||||
-rw-r--r-- | monzo_ynab/tokens.nix | 15 |
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 + ]; +} |