Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
908 B
Nix
38 lines
908 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "librespeed-cli";
|
|
version = "1.0.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "librespeed";
|
|
repo = "speedtest-cli";
|
|
tag = "v${version}";
|
|
hash = "sha256-njaQ/Be5rDCqkZJkij0nRi8aIO5uZYo8t3BjIcdKoCM=";
|
|
};
|
|
|
|
vendorHash = "sha256-dmaq9+0FjqYh2ZLg8bu8cPJZ9QClcvwid1nmsftmrf0=";
|
|
|
|
# Tests have additional requirements
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mv $out/bin/speedtest-cli $out/bin/librespeed-cli
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command line client for LibreSpeed";
|
|
homepage = "https://github.com/librespeed/speedtest-cli";
|
|
changelog = "https://github.com/librespeed/speedtest-cli/releases/tag/${src.tag}";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "librespeed-cli";
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|