diff --git a/pkgs/by-name/k2/k2tf/package.nix b/pkgs/by-name/k2/k2tf/package.nix index 5978085a74e2..8020b672613b 100644 --- a/pkgs/by-name/k2/k2tf/package.nix +++ b/pkgs/by-name/k2/k2tf/package.nix @@ -2,6 +2,8 @@ lib, buildGoModule, fetchFromGitHub, + versionCheckHook, + nix-update-script, }: buildGoModule (finalAttrs: { @@ -27,6 +29,11 @@ buildGoModule (finalAttrs: { "-X main.commit=v${finalAttrs.version}" ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; }; + meta = { description = "Kubernetes YAML to Terraform HCL converter"; mainProgram = "k2tf";