Nixify tokens.go

- Package tokens.go with Nix
- Add monzo_ynab.{job,tokens} to shell.nix
This commit is contained in:
William Carroll 2020-02-09 13:50:44 +00:00
parent a5ef9b11a6
commit 248c7a24c6
2 changed files with 22 additions and 1 deletions

View file

@ -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
];
}

15
monzo_ynab/tokens.nix Normal file
View file

@ -0,0 +1,15 @@
{
depot ? import <depot> {},
briefcase ? import <briefcase> {},
...
}:
depot.buildGo.program {
name = "token-server";
srcs = [
./tokens.go
];
deps = with briefcase.gopkgs; [
kv
];
}