apx: add version to build flags

This commit is contained in:
John Garcia 2024-07-23 22:44:15 +01:00
parent 301779587a
commit 1c276021b5

View File

@ -23,7 +23,7 @@ buildGoModule rec {
# podman needed for apx to not error when building shell completions
nativeBuildInputs = [ installShellFiles podman ];
ldflags = [ "-s" "-w" ];
ldflags = [ "-s" "-w" "-X 'main.Version=v${version}'" ];
postPatch = ''
substituteInPlace config/apx.json \