openrisk: add versionCheckHook

This commit is contained in:
Fabian Affolter
2024-12-07 18:21:50 +01:00
parent 2f1909547f
commit f78b15bd0c
+10
View File
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
@@ -17,6 +18,15 @@ buildGoModule rec {
vendorHash = "sha256-BLowqqlMLDtsthS4uKeycmtG7vASG25CARGpUcuibcw=";
ldflags = [
"-w"
"-s"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = with lib; {
description = "Tool that generates an AI-based risk score";
homepage = "https://github.com/projectdiscovery/openrisk";