2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cfspeedtest";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.2.6";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "code-inflation";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-K/rotb4rgYKOF1Gvgb8uPfHCAyYqwcvyU26ZlKGxHcs=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-clIMlnLXL4ciD1H0LNSLH/ooKIfoZy9D/RDvoSHfG+I=";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unofficial CLI for speed.cloudflare.com";
|
|
|
|
homepage = "https://github.com/code-inflation/cfspeedtest";
|
|
|
|
license = with licenses; [ mit ];
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ colemickens ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "cfspeedtest";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}
|