at 23.11-beta 43 lines 1.0 kB view raw
1{ buildGoModule 2, fetchFromGitHub 3, lib 4}: 5 6buildGoModule rec { 7 pname = "httpx"; 8 version = "1.3.7"; 9 10 src = fetchFromGitHub { 11 owner = "projectdiscovery"; 12 repo = "httpx"; 13 rev = "refs/tags/v${version}"; 14 hash = "sha256-FiCY9dZDZ92c6MayloS97Ff1trc5w4M/AIS6XORZf5U="; 15 }; 16 17 vendorHash = "sha256-++vCyunRkLn9K1u+zXSN4TzIS9J8emc/w85ToqmG7gY="; 18 19 subPackages = [ 20 "cmd/httpx" 21 ]; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 ]; 27 28 # Tests require network access 29 doCheck = false; 30 31 meta = with lib; { 32 description = "Fast and multi-purpose HTTP toolkit"; 33 longDescription = '' 34 httpx is a fast and multi-purpose HTTP toolkit allow to run multiple 35 probers using retryablehttp library, it is designed to maintain the 36 result reliability with increased threads. 37 ''; 38 homepage = "https://github.com/projectdiscovery/httpx"; 39 changelog = "https://github.com/projectdiscovery/httpx/releases/tag/v${version}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}