10 rustPlatform.buildRustPackage rec {
15 inherit pname version;
16 hash = "sha256-GxjG8pyE2rY0h1dpAo+HRUbP31I5Pm4h1fAb6R7V+qU=";
19 cargoHash = "sha256-YdbVtVKt0bKb1R5IQxf9J/0ZA3ZHH+oZ8ryX6f4cGsY=";
21 # The bin feature activates all dependencies of the binary. Otherwise,
22 # only the library is build.
23 buildFeatures = [ "bin" ];
25 nativeBuildInputs = [ pkg-config ];
29 ] ++ lib.optionals stdenv.isDarwin [
30 darwin.apple_sdk.frameworks.Security
34 description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests";
36 This crate measures the times of DNS lookup, TCP connect, TLS handshake, and HTTP's TTFB
37 for a given IP or domain.
39 homepage = "https://github.com/phip1611/ttfb";
40 changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md";
41 license = with lib.licenses; [ mit ];
42 maintainers = with lib.maintainers; [ phip1611 ];