nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchCrate,
3 lib,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "ttfb";
9 version = "1.15.0";
10
11 src = fetchCrate {
12 inherit pname version;
13 hash = "sha256-OOVqCWeF5cHMweEGWYIiWWWsw1QlNDFgnia05Qxo7uo=";
14 };
15
16 cargoHash = "sha256-4Nsg5/66enMgAfPrUQHuhOTTwG2OWyyvKMHIhPnlHko=";
17
18 # The bin feature activates all dependencies of the binary. Otherwise,
19 # only the library is build.
20 buildFeatures = [ "bin" ];
21
22 meta = {
23 description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests";
24 mainProgram = "ttfb";
25 longDescription = ''
26 ttfb measure the TTFB (time to first byte) of HTTP(S) requests. This includes data
27 of intermediate steps, such as the relative and absolute timings of DNS lookup, TCP
28 connect, and TLS handshake.
29 '';
30 homepage = "https://github.com/phip1611/ttfb";
31 changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md";
32 license = with lib.licenses; [ mit ];
33 maintainers = with lib.maintainers; [ phip1611 ];
34 };
35}