Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{
|
|
fetchCrate,
|
|
lib,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ttfb";
|
|
version = "1.15.0";
|
|
|
|
src = fetchCrate {
|
|
inherit pname version;
|
|
hash = "sha256-OOVqCWeF5cHMweEGWYIiWWWsw1QlNDFgnia05Qxo7uo=";
|
|
};
|
|
|
|
cargoHash = "sha256-4Nsg5/66enMgAfPrUQHuhOTTwG2OWyyvKMHIhPnlHko=";
|
|
|
|
# The bin feature activates all dependencies of the binary. Otherwise,
|
|
# only the library is build.
|
|
buildFeatures = [ "bin" ];
|
|
|
|
meta = {
|
|
description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests";
|
|
mainProgram = "ttfb";
|
|
longDescription = ''
|
|
ttfb measure the TTFB (time to first byte) of HTTP(S) requests. This includes data
|
|
of intermediate steps, such as the relative and absolute timings of DNS lookup, TCP
|
|
connect, and TLS handshake.
|
|
'';
|
|
homepage = "https://github.com/phip1611/ttfb";
|
|
changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ phip1611 ];
|
|
};
|
|
}
|