mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 03:07:53 +00:00
nuclei: add versionCheckHook (#361228)
This commit is contained in:
commit
38ef70613c
@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -26,10 +27,10 @@ buildGoModule rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to gather network ranges using ASN information";
|
||||
mainProgram = "asnmap";
|
||||
homepage = "https://github.com/projectdiscovery/asnmap";
|
||||
changelog = "https://github.com/projectdiscovery/asnmap/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "asnmap";
|
||||
};
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -16,10 +17,13 @@ buildGoModule rec {
|
||||
};
|
||||
|
||||
vendorHash = "sha256-lxqVNhA8/iMx31Bbp4rIHVrh3nUARlxY2KDcCxOtO+I=";
|
||||
|
||||
proxyVendor = true; # hash mismatch between Linux and Darwin
|
||||
|
||||
subPackages = [ "cmd/nuclei/" ];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
ldflags = [
|
||||
"-w"
|
||||
"-s"
|
||||
@ -28,6 +32,10 @@ buildGoModule rec {
|
||||
# Test files are not part of the release tarball
|
||||
doCheck = false;
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
versionCheckProgramArg = [ "-version" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool for configurable targeted scanning";
|
||||
longDescription = ''
|
||||
|
Loading…
Reference in New Issue
Block a user