govulncheck: add versionCheckHook

This commit is contained in:
Fabian Affolter
2026-04-14 01:10:09 +02:00
parent df9fea8789
commit 42ff802fee
+7
View File
@@ -3,6 +3,7 @@
buildGoLatestModule,
fetchFromGitHub,
replaceVars,
versionCheckHook,
}:
buildGoLatestModule (finalAttrs: {
@@ -37,6 +38,12 @@ buildGoLatestModule (finalAttrs: {
"-w"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
meta = {
homepage = "https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck";
downloadPage = "https://github.com/golang/vuln";