nixpkgs/pkgs/development/tools/ttfb/default.nix

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

42 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-26 16:41:39 +03:00
{ darwin
, fetchCrate
, lib
, rustPlatform
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "ttfb";
2024-04-09 09:39:54 +03:00
version = "1.11.0";
2023-01-26 16:41:39 +03:00
src = fetchCrate {
inherit pname version;
2024-04-09 09:39:54 +03:00
hash = "sha256-38mhwYfWoMZzdbkgv65hBpX23wCpAWwiahuzO5xRpmA=";
2023-01-26 16:41:39 +03:00
};
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
2024-04-09 09:39:54 +03:00
cargoHash = "sha256-Gqv4XvG3aYMRdMP1mzUlsCPN+NMLHq2nf283KBQCems==";
2023-01-26 16:41:39 +03:00
# The bin feature activates all dependencies of the binary. Otherwise,
# only the library is build.
buildFeatures = [ "bin" ];
2023-02-28 00:34:59 +03:00
meta = {
2023-01-26 16:41:39 +03:00
description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests";
mainProgram = "ttfb";
2023-01-26 16:41:39 +03:00
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.
2023-01-26 16:41:39 +03:00
'';
homepage = "https://github.com/phip1611/ttfb";
changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md";
2023-02-28 00:34:59 +03:00
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ phip1611 ];
2023-01-26 16:41:39 +03:00
};
}