mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
cdncheck: init at 1.1.0
Tool to detect various technology for a given IP address https://github.com/projectdiscovery/cdncheck
This commit is contained in:
parent
3c940494d1
commit
37a14c2e43
43
pkgs/by-name/cd/cdncheck/package.nix
Normal file
43
pkgs/by-name/cd/cdncheck/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "cdncheck";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "projectdiscovery";
|
||||
repo = "cdncheck";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-1TYUSWbcWnRsOM8ctY1g9CmFSAXiK9NmN5ZDaKeJIgw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-0fiZJeBvxUib8a9CeTmYottOp+15YEdTVYhdzKSSCrk=";
|
||||
|
||||
subPackages = [ "cmd/cdncheck/" ];
|
||||
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# Tests require network access
|
||||
substituteInPlace other_test.go \
|
||||
--replace-fail "TestCheckDomainWithFallback" "SkipTestCheckDomainWithFallback" \
|
||||
--replace-fail "TestCheckDNSResponse" "SkipTestCheckDNSResponse"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to detect various technology for a given IP address";
|
||||
homepage = "https://github.com/projectdiscovery/cdncheck";
|
||||
changelog = "https://github.com/projectdiscovery/cdncheck/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "cdncheck";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user