nixpkgs/pkgs/tools/security/httpx/default.nix

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

44 lines
1 KiB
Nix
Raw Normal View History

2020-12-27 15:27:56 +01:00
{ buildGoModule
, fetchFromGitHub
, lib
2020-12-27 15:27:56 +01:00
}:
buildGoModule rec {
pname = "httpx";
2024-03-02 06:20:10 +01:00
version = "1.5.0";
2020-12-27 15:27:56 +01:00
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "httpx";
rev = "refs/tags/v${version}";
2024-03-02 06:20:10 +01:00
hash = "sha256-UYMaviHuRP47WSm8tsxjpsVrPgeQRUGTe7TxDAfhoGM=";
2020-12-27 15:27:56 +01:00
};
2024-03-02 06:20:10 +01:00
vendorHash = "sha256-tCwh+uEqXw4PZp11xRSFovXxNstulCMPfcEiVhTFuI4=";
subPackages = [
"cmd/httpx"
];
2023-04-29 13:21:00 +02:00
ldflags = [
"-s"
"-w"
];
2023-04-29 13:21:00 +02:00
# Tests require network access
doCheck = false;
2020-12-27 15:27:56 +01:00
meta = with lib; {
2020-12-27 15:27:56 +01: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 15:27:56 +01:00
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}