diff --git a/monzo_ynab/shell.nix b/monzo_ynab/shell.nix index 836718d85..be185dd1d 100644 --- a/monzo_ynab/shell.nix +++ b/monzo_ynab/shell.nix @@ -1,9 +1,15 @@ -{ pkgs ? import {}, ... }: +{ + pkgs ? import {}, + briefcase ? import {}, + ... +}: 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 000000000..6b932e397 --- /dev/null +++ b/monzo_ynab/tokens.nix @@ -0,0 +1,15 @@ +{ + depot ? import {}, + briefcase ? import {}, + ... +}: + +depot.buildGo.program { + name = "token-server"; + srcs = [ + ./tokens.go + ]; + deps = with briefcase.gopkgs; [ + kv + ]; +}