nixpkgs/pkgs/by-name/op/openrisk/package.nix
2024-12-07 18:21:50 +01:00

39 lines
855 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
pname = "openrisk";
version = "0.0.1";
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "openrisk";
rev = "refs/tags/v${version}";
hash = "sha256-8DGwNoucLpdazf9r4PZrN4DEOMpTr5U7tal2Rab92pA=";
};
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";
changelog = "https://github.com/projectdiscovery/openrisk/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "openrisk";
};
}