2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "speedtest-go";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.7.7";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "showwin";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-8LMbaa3D1ODjySx69U0CGWphG8CQswWlQsqW6mXPy6o=";
|
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;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
aleksana
|
|
|
|
luftmensch-luftmensch
|
|
|
|
];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "speedtest-go";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|