nixpkgs/pkgs/by-name/ht/httpx/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-20 06:05:07 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
2020-12-27 14:27:56 +00:00
}:
buildGoModule rec {
pname = "httpx";
version = "1.6.9";
2020-12-27 14:27:56 +00:00
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "httpx";
rev = "refs/tags/v${version}";
hash = "sha256-fkHMtFshRNtRhsxjbYOkeL2cln84NAa01jcGKips5Kk=";
2020-12-27 14:27:56 +00:00
};
vendorHash = "sha256-zTPJtuKPtsVsgMwHFjVwAh1/3DudW7TPWOMJ20nNu1I=";
2024-05-20 06:05:07 +00:00
subPackages = [ "cmd/httpx" ];
2023-04-29 11:21:00 +00:00
ldflags = [
"-s"
"-w"
];
2023-04-29 11:21:00 +00:00
# Tests require network access
doCheck = false;
2020-12-27 14:27:56 +00:00
meta = with lib; {
2020-12-27 14:27:56 +00:00
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}";
2020-12-27 14:27:56 +00:00
license = licenses.mit;
maintainers = with maintainers; [ fab ];
2024-05-20 06:05:07 +00:00
mainProgram = "httpx";
2020-12-27 14:27:56 +00:00
};
}