Nixify tokens.go
- Package tokens.go with Nix - Add monzo_ynab.{job,tokens} to shell.nix
This commit is contained in:
parent
a5ef9b11a6
commit
248c7a24c6
2 changed files with 22 additions and 1 deletions
|
@ -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
15
monzo_ynab/tokens.nix
Normal 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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue