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:
parent
6220294f94
commit
fe01b82c5d
2 changed files with 6 additions and 118 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue