Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 41 lines 1.2 kB view raw
1{ darwin 2, fetchCrate 3, lib 4, rustPlatform 5, stdenv 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "ttfb"; 10 version = "1.12.0"; 11 12 src = fetchCrate { 13 inherit pname version; 14 hash = "sha256-Cdup65w31wF1RZu0g4/msHfLESrNTcuCU5kxkk0gnW8="; 15 }; 16 17 buildInputs = lib.optionals stdenv.isDarwin [ 18 darwin.apple_sdk.frameworks.Security 19 ]; 20 21 cargoHash = "sha256-U8CG0GqnUwya+ZK0qXtOFZ/MbbqSvB5egX7XJKtl88g="; 22 23 # The bin feature activates all dependencies of the binary. Otherwise, 24 # only the library is build. 25 buildFeatures = [ "bin" ]; 26 27 meta = { 28 description = "CLI-Tool to measure the TTFB (time to first byte) of HTTP(S) requests"; 29 mainProgram = "ttfb"; 30 longDescription = '' 31 ttfb measure the TTFB (time to first byte) of HTTP(S) requests. This includes data 32 of intermediate steps, such as the relative and absolute timings of DNS lookup, TCP 33 connect, and TLS handshake. 34 ''; 35 homepage = "https://github.com/phip1611/ttfb"; 36 changelog = "https://github.com/phip1611/ttfb/blob/v${version}/CHANGELOG.md"; 37 license = with lib.licenses; [ mit ]; 38 maintainers = with lib.maintainers; [ phip1611 ]; 39 }; 40} 41