From c6a7a0faa14df641155fca002b5976d2a2b64297 Mon Sep 17 00:00:00 2001 From: Igor Ramazanov Date: Tue, 11 Mar 2025 16:18:06 +0000 Subject: [PATCH] feat: build `hp_agent` with `nix` --- nix/agent.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nix/agent.nix 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; +}