summaryrefslogtreecommitdiff
path: root/pkgs/cfspeedtest.nix
blob: 5f0c6965ccc032a9e7093ab5ddd731af7f94ca67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  lib,
  fetchFromGitHub,
  rustPlatform,
}:
rustPlatform.buildRustPackage rec {
  pname = "cfspeedtest";
  version = "1.0.2";

  src = fetchFromGitHub {
    owner = "code-inflation";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-EWpepDW3XEQaGdUxAwDYemrqGP++jjeyQddQdFOyb3s=";
  };

  cargoLock.lockFile = "${src}/Cargo.lock";

  meta = with lib; {
    homepage = "https://github.com/code-inflation/cfspeedtest";
    description = "Unofficial CLI for speed.cloudflare.com";
    license = licenses.mit;
    maintainers = with maintainers; [getchoo];
  };
}