2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "speedtest-go";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.6.10";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "showwin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-Uk7ZKGxyK4b7P87qN7rGgj4oXJgYhH4NzZa+4fOkh14=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = "sha256-wQqAX7YuxxTiMWmV9LRoXunGMMzs12UyHbf4VvbQF1E=";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
excludedPackages = [ "example" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|