sonoscli: init at 0.1.0 (#508651)

This commit is contained in:
Pol Dellaiera
2026-05-15 12:42:22 +00:00
committed by GitHub
2 changed files with 55 additions and 0 deletions
+5
View File
@@ -11945,6 +11945,11 @@
github = "j0xaf";
githubId = 932697;
};
j10ccc = {
name = "popWheat";
github = "j10ccc";
githubId = 49830650;
};
j1nxie = {
email = "rylie@rylie.moe";
name = "Nguyen Pham Quoc An";
+50
View File
@@ -0,0 +1,50 @@
{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
stdenv,
}:
buildGoModule (finalAttrs: {
pname = "sonoscli";
version = "0.1.0";
src = fetchFromGitHub {
owner = "steipete";
repo = "sonoscli";
tag = "v${finalAttrs.version}";
hash = "sha256-9ouRJ0Rr+W5Kx9BltgW29Jo1Jq7Hb/un4XBkq+0in9o=";
};
vendorHash = "sha256-hocnLCzWN8srQcO3BMNkd2lt0m54Qe7sqAhUxVZlz1k=";
subPackages = [ "cmd/sonos" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd sonos \
--bash <($out/bin/sonos completion bash) \
--fish <($out/bin/sonos completion fish) \
--zsh <($out/bin/sonos completion zsh)
'';
__structuredAttrs = true;
meta = {
description = "Control Sonos speakers from your terminal over LAN (UPnP/SOAP)";
longDescription = ''
sonoscli is a modern Go CLI to control Sonos speakers over your local
network using UPnP/SOAP. Features include reliable SSDP discovery,
coordinator-aware playback controls, grouping, queue management,
favorites, scenes, Spotify integration via SMAPI, and live event watching.
'';
homepage = "https://github.com/steipete/sonoscli";
changelog = "https://github.com/steipete/sonoscli/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "sonos";
maintainers = with lib.maintainers; [ j10ccc ];
platforms = lib.platforms.unix;
};
})