2020-12-29 15:07:52 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, lib
|
2020-12-29 15:07:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "httpx";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.6.0";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projectdiscovery";
|
|
|
|
repo = "httpx";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-q8R3X1U2Dma0A9WRWIFPSRQHndNJFE2YdfMyPEM6dr8=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-M7oxM0hMaOT78CxbSGyYk0nhGJC8dLWAlzi/b//EiHw=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
subPackages = [
|
|
|
|
"cmd/httpx"
|
|
|
|
];
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
# Tests require network access
|
|
|
|
doCheck = false;
|
2020-12-29 15:07:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-29 15:07:52 +00:00
|
|
|
description = "Fast and multi-purpose HTTP toolkit";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "httpx";
|
2020-12-29 15:07:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
httpx is a fast and multi-purpose HTTP toolkit allow to run multiple
|
|
|
|
probers using retryablehttp library, it is designed to maintain the
|
|
|
|
result reliability with increased threads.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/projectdiscovery/httpx";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/projectdiscovery/httpx/releases/tag/v${version}";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|