about summary refs log tree commit diff
path: root/tools/blog_cli/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-13T21·31+0000
committerVincent Ambo <tazjin@google.com>2019-12-13T21·31+0000
commitfe01b82c5dc913e424c79ebb3203d964b7b0e267 (patch)
tree714126c33a069a3b1bd29b96333f1f7e7cd3150e /tools/blog_cli/default.nix
parent6220294f94416079d5bc7b6a1a99bdb79bd70107 (diff)
refactor(tools/blog_cli): Build with buildGo.nix r/125
This is the first Go package properly built with external dependencies
using buildGo.nix
Diffstat (limited to 'tools/blog_cli/default.nix')
-rw-r--r--tools/blog_cli/default.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/blog_cli/default.nix b/tools/blog_cli/default.nix
index ed283f744f52..c22e4c949bc1 100644
--- a/tools/blog_cli/default.nix
+++ b/tools/blog_cli/default.nix
@@ -1,10 +1,9 @@
 { pkgs, ... }:
 
-pkgs.third_party.buildGoPackage {
+pkgs.buildGo.program {
   name = "blog_cli";
-  goPackagePath = "github.com/tazjin/personal/blog_cli";
-  src = ./.;
-  goDeps = ./deps.nix;
-
-  meta.enableCI = true;
-}
+  srcs = [ ./main.go ];
+  deps = with pkgs.third_party; [
+    gopkgs."google.golang.org".api.dns.v1.gopkg
+  ];
+} // { meta.enableCI = true; }