Files
nixpkgs/pkgs/by-name/vu/vulnx/package.nix
2026-07-09 06:02:32 +00:00

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";
};
})