nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 1.1 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule (finalAttrs: { 8 pname = "cdncheck"; 9 version = "1.2.21"; 10 11 src = fetchFromGitHub { 12 owner = "projectdiscovery"; 13 repo = "cdncheck"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-Y0+6SslkAP+5Gtu/AQx0qUrWET5TWUgcIPIYxSWu4ec="; 16 }; 17 18 vendorHash = "sha256-sVCmEMT6Y/9EPCbiUlstAw8FS4y+afeYeWNhT8aBXSE="; 19 20 subPackages = [ "cmd/cdncheck/" ]; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 preCheck = '' 28 # Tests require network access 29 substituteInPlace other_test.go \ 30 --replace-fail "TestCheckDomainWithFallback" "SkipTestCheckDomainWithFallback" \ 31 --replace-fail "TestCheckDNSResponse" "SkipTestCheckDNSResponse" 32 ''; 33 34 meta = { 35 description = "Tool to detect various technology for a given IP address"; 36 homepage = "https://github.com/projectdiscovery/cdncheck"; 37 changelog = "https://github.com/projectdiscovery/cdncheck/releases/tag/v${finalAttrs.src.tag}"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ fab ]; 40 mainProgram = "cdncheck"; 41 }; 42})