depot/third_party/nixpkgs/pkgs/tools/security/httpx/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

43 lines
1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "httpx";
version = "1.6.5";
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "httpx";
rev = "refs/tags/v${version}";
hash = "sha256-c+o+T2CWIqibjTn5zuTKCvdYVvmgzSQoQVOLiqdRHHU=";
};
vendorHash = "sha256-ia8sxoldJiMbnerodUz+SEuUWRqSzJfO737TmfO8aL4=";
subPackages = [ "cmd/httpx" ];
ldflags = [
"-s"
"-w"
];
# Tests require network access
doCheck = false;
meta = with lib; {
description = "Fast and multi-purpose HTTP toolkit";
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";
changelog = "https://github.com/projectdiscovery/httpx/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "httpx";
};
}