diff --git a/pkgs/tools/networking/cfspeedtest/default.nix b/pkgs/tools/networking/cfspeedtest/default.nix new file mode 100644 index 000000000000..33b1c0046f1a --- /dev/null +++ b/pkgs/tools/networking/cfspeedtest/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "cfspeedtest"; + version = "1.1.2"; + + src = fetchFromGitHub { + owner = "code-inflation"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-uQe9apG4SdFEUT2aOrzF2C8bbrl0fOiqnMZrWDQvbxk="; + }; + + cargoSha256 = "sha256-wJmLUPXGSg90R92iW9R02r3E3e7XU1gJwd8IqIC+QMA="; + + meta = with lib; { + description = "Unofficial CLI for speed.cloudflare.com"; + homepage = "https://github.com/code-inflation/cfspeedtest"; + license = with licenses; [ mit ]; + broken = stdenv.isDarwin; + maintainers = with maintainers; [ colemickens ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b32bb9cd2039..9cf0a108884c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1699,6 +1699,8 @@ with pkgs; cf-vault = callPackage ../tools/admin/cf-vault { }; + cfspeedtest = callPackage ../tools/networking/cfspeedtest { }; + cfonts = callPackage ../tools/misc/cfonts { }; bikeshed = python3Packages.callPackage ../applications/misc/bikeshed { };