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

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

46 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-26 13:41:39 +00:00
{ darwin
, fetchCrate
, lib
, openssl
, pkg-config
, rustPlatform
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "ttfb";
version = "1.6.0";
src = fetchCrate {
inherit pname version;
2023-02-27 21:34:59 +00:00
hash = "sha256-o7kzQ8jtAqDwTUPtjeNqgotxREeWl7jQG+EDrYWJL/Q=";
2023-01-26 13:41:39 +00:00
};
2023-02-27 21:34:59 +00:00
cargoHash = "sha256-ayyYrrFDVOYVjVo5TLaRn2mvmywe5BjQ7kRVV2r0iK8=";
2023-01-26 13:41:39 +00:00
# The bin feature activates all dependencies of the binary. Otherwise,
# only the library is build.
buildFeatures = [ "bin" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
2023-02-27 21:34:59 +00:00
meta = {
2023-01-26 13:41:39 +00:00
description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests";
longDescription = ''
This crate measures the times of DNS lookup, TCP connect, TLS handshake, and HTTP's TTFB
for a given IP or domain.
'';
homepage = "https://github.com/phip1611/ttfb";
changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md";
2023-02-27 21:34:59 +00:00
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ phip1611 ];
2023-01-26 13:41:39 +00:00
};
}