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