depot/third_party/nixpkgs/pkgs/tools/networking/speedtest-go/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

31 lines
773 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "speedtest-go";
version = "1.6.0";
src = fetchFromGitHub {
owner = "showwin";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-LpsesUC0Cj9pkc/6c0wDEl6X9Y6GqwACwVv7J31TTg0=";
};
vendorHash = "sha256-wQqAX7YuxxTiMWmV9LRoXunGMMzs12UyHbf4VvbQF1E=";
excludedPackages = [ "example" ];
# test suite requires network
doCheck = false;
meta = with lib; {
description = "CLI and Go API to Test Internet Speed using speedtest.net";
homepage = "https://github.com/showwin/speedtest-go";
changelog = "https://github.com/showwin/speedtest-go/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ aleksana ];
};
}