{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule (finalAttrs: { pname = "cdncheck"; version = "1.2.21"; src = fetchFromGitHub { owner = "projectdiscovery"; repo = "cdncheck"; tag = "v${finalAttrs.version}"; hash = "sha256-Y0+6SslkAP+5Gtu/AQx0qUrWET5TWUgcIPIYxSWu4ec="; }; vendorHash = "sha256-sVCmEMT6Y/9EPCbiUlstAw8FS4y+afeYeWNhT8aBXSE="; subPackages = [ "cmd/cdncheck/" ]; ldflags = [ "-s" "-w" ]; preCheck = '' # Tests require network access substituteInPlace other_test.go \ --replace-fail "TestCheckDomainWithFallback" "SkipTestCheckDomainWithFallback" \ --replace-fail "TestCheckDNSResponse" "SkipTestCheckDNSResponse" ''; meta = { 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${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; mainProgram = "cdncheck"; }; })