nixpkgs/pkgs/tools/security/openrisk/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
709 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "openrisk";
version = "0.0.1";
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-8DGwNoucLpdazf9r4PZrN4DEOMpTr5U7tal2Rab92pA=";
};
vendorHash = "sha256-BLowqqlMLDtsthS4uKeycmtG7vASG25CARGpUcuibcw=";
meta = with lib; {
description = "Tool that generates an AI-based risk score";
mainProgram = "openrisk";
homepage = "https://github.com/projectdiscovery/openrisk";
changelog = "https://github.com/projectdiscovery/openrisk/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}