feat: build hp_agent with nix

This commit is contained in:
Igor Ramazanov 2025-03-11 16:18:06 +00:00
parent 8c79c4ff04
commit c6a7a0faa1

10
nix/agent.nix Normal file
View File

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