mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
43 lines
998 B
Nix
43 lines
998 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "vulnx";
|
|
version = "2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projectdiscovery";
|
|
repo = "vulnx";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-oIoLInhErN1AojJ8GLLfxsp4Yy/S0UjnCESrVfOGp/4=";
|
|
};
|
|
|
|
vendorHash = "sha256-xAdaTu/DRtolP6tXge42ntJvq7Wi9gDErRfX1HZposc=";
|
|
|
|
subPackages = [ "cmd/vulnx/" ];
|
|
|
|
ldflags = [ "-s" ];
|
|
|
|
__structuredAttrs = true;
|
|
|
|
strictDeps = true;
|
|
|
|
# Issue with updater and version check
|
|
# nativeInstallCheckInputs = [ versionCheckHook ];
|
|
# doInstallCheck = true;
|
|
# versionCheckProgramArg = [ "version" ];
|
|
|
|
meta = {
|
|
description = "Tool to work with CVEs";
|
|
homepage = "https://github.com/projectdiscovery/vulnx";
|
|
changelog = "https://github.com/projectdiscovery/vulnx/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "vulnx";
|
|
};
|
|
})
|