refactor(tools/blog_cli): Build with buildGo.nix

This is the first Go package properly built with external dependencies
using buildGo.nix
This commit is contained in:
Vincent Ambo 2019-12-13 21:31:01 +00:00
parent 6220294f94
commit fe01b82c5d
2 changed files with 6 additions and 118 deletions

View file

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