From 8a8ec917b47852eb0f0fd658544aa17104293603 Mon Sep 17 00:00:00 2001 From: Nathan Warner Date: Wed, 9 Jul 2025 08:10:26 -0600 Subject: [PATCH] Rename the binary to match upstream name --- pkgs/by-name/li/librespeed-cli/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/librespeed-cli/package.nix b/pkgs/by-name/li/librespeed-cli/package.nix index b2a64f0fdbcb..da6eac10f641 100644 --- a/pkgs/by-name/li/librespeed-cli/package.nix +++ b/pkgs/by-name/li/librespeed-cli/package.nix @@ -21,13 +21,17 @@ buildGoModule rec { # 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 = "speedtest-cli"; + mainProgram = "librespeed-cli"; broken = stdenv.hostPlatform.isDarwin; }; }