about summary refs log tree commit diff
path: root/monzo_ynab/job.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-02-09T13·47+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-02-10T10·06+0000
commit64654d1d6d1f36a20e00ee6cdc3866ff009c3a0a (patch)
tree3a764c88197e704a86ef527467b49a933c9f242d /monzo_ynab/job.nix
parentec4c8472ca8eaed9a40d5decf5f909bdda96ec62 (diff)
Create gopkgs directory for golang libs
- Created a gopkgs directory and registered it with default.nix's readTree
- Moved monzo_ynab/utils -> gopkgs
- Consumed utils.go in main.go
- Renamed monzo_ynab -> job
Diffstat (limited to 'monzo_ynab/job.nix')
-rw-r--r--monzo_ynab/job.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/monzo_ynab/job.nix b/monzo_ynab/job.nix
new file mode 100644
index 000000000000..f6cb78789000
--- /dev/null
+++ b/monzo_ynab/job.nix
@@ -0,0 +1,16 @@
+{
+  depot ? import <depot> {},
+  briefcase ? import <briefcase> {},
+  ...
+}:
+
+depot.buildGo.program {
+  name = "job";
+  srcs = [
+    ./main.go
+  ];
+  deps = with briefcase.gopkgs; [
+    kv
+    utils
+  ];
+}