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