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