diff --git a/nix/agent.nix b/nix/agent.nix new file mode 100644 index 0000000..2ac815f --- /dev/null +++ b/nix/agent.nix @@ -0,0 +1,10 @@ +{buildGoModule}: +buildGoModule { + pname = "hp_agent"; + # TODO: take the latest `git tag`, if commits do not match, append `-SNAPSHOT`. + version = "0.5.3"; + src = ../.; + vendorHash = "sha256-G0kahv3mPTL/mxU2U+0IytJaFVPXMbMBktbLMfM0BO8="; + ldflags = ["-s" "-w"]; + env.CGO_ENABLED = 0; +}