diff --git a/pkgs/by-name/ag/age-plugin-tpm/package.nix b/pkgs/by-name/ag/age-plugin-tpm/package.nix index 061ad37c157e..38af494ca43e 100644 --- a/pkgs/by-name/ag/age-plugin-tpm/package.nix +++ b/pkgs/by-name/ag/age-plugin-tpm/package.nix @@ -7,6 +7,7 @@ swtpm, openssl, age, + versionCheckHook, }: buildGoModule rec { @@ -28,6 +29,7 @@ buildGoModule rec { age swtpm ]; + nativeInstallCheckInputs = [ versionCheckHook ]; buildInputs = [ openssl @@ -36,6 +38,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" + "-X main.version=${version}" ]; passthru.tests = {