ttfb: 1.7.0 -> 1.10.0

The new version doesn't need the openssl dependency anymore.
This commit is contained in:
Philipp Schuster 2023-12-23 14:31:30 +01:00
parent 5494aa21c7
commit dcf427140d

View File

@ -1,40 +1,35 @@
{ darwin { darwin
, fetchCrate , fetchCrate
, lib , lib
, openssl
, pkg-config
, rustPlatform , rustPlatform
, stdenv , stdenv
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "ttfb"; pname = "ttfb";
version = "1.7.0"; version = "1.10.0";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-GxjG8pyE2rY0h1dpAo+HRUbP31I5Pm4h1fAb6R7V+qU="; hash = "sha256-94gBofb7H7+qU50+cp+rq14Vtbk2vuXFQksNITvICm4=";
}; };
cargoHash = "sha256-YdbVtVKt0bKb1R5IQxf9J/0ZA3ZHH+oZ8ryX6f4cGsY="; buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
cargoHash = "sha256-CUisxtUQXkStqSZikIoAN0GwpUjvQqon7KqI0beHL5U=";
# The bin feature activates all dependencies of the binary. Otherwise, # The bin feature activates all dependencies of the binary. Otherwise,
# only the library is build. # only the library is build.
buildFeatures = [ "bin" ]; buildFeatures = [ "bin" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = { meta = {
description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests"; description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests";
longDescription = '' longDescription = ''
This crate measures the times of DNS lookup, TCP connect, TLS handshake, and HTTP's TTFB ttfb measure the TTFB (time to first byte) of HTTP(S) requests. This includes data
for a given IP or domain. of intermediate steps, such as the relative and absolute timings of DNS lookup, TCP
connect, and TLS handshake.
''; '';
homepage = "https://github.com/phip1611/ttfb"; homepage = "https://github.com/phip1611/ttfb";
changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md";