From 666dfa23cc772d99257be30902af8962fb5732fb Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sun, 23 Aug 2026 13:52:32 +0200 Subject: [PATCH] spotatui: 0.40.3 -> 0.41.0, add flags for new AI features This updates the spotatui package and adds flags for new AI-related features that upstream added in the new release, which are disabled by default upstream. Accordingly, our new flags default to false. This also disables tests when the `ai-dj` feature is enabled due to a test failure upstream. This has been reported to upstream and will be fixed in the next version. --- pkgs/by-name/sp/spotatui/package.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/sp/spotatui/package.nix b/pkgs/by-name/sp/spotatui/package.nix index 881b857d77c8..4183d04981a3 100644 --- a/pkgs/by-name/sp/spotatui/package.nix +++ b/pkgs/by-name/sp/spotatui/package.nix @@ -9,19 +9,21 @@ pipewire, withPipewireVisualizer ? true, + withAiDj ? false, + withMCPServer ? false, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "spotatui"; - version = "0.40.3"; + version = "0.41.0"; src = fetchFromGitHub { owner = "LargeModGames"; repo = "spotatui"; tag = "v${finalAttrs.version}"; - hash = "sha256-9t/gwFdbKWlw1VaWq3y9dcEbdCK+oGUrnAK+eEwij/0="; + hash = "sha256-uTNrynFPVQibgt4pBVvPLbxN4EFdAC7ezZ91GftSHac="; }; - cargoHash = "sha256-5pY+tIk6U71ko09om/CK0PkSaMeCjdxxb15W62c+xqo="; + cargoHash = "sha256-X2xyEN43jwT6xr3iACLdvuOaH0SQdtxeJBBP1rEhy80="; nativeBuildInputs = [ pkg-config ] ++ lib.optional withPipewireVisualizer rustPlatform.bindgenHook; @@ -39,7 +41,14 @@ rustPlatform.buildRustPackage (finalAttrs: { "streaming" "telemetry" ] - ++ lib.optional withPipewireVisualizer "audio-viz"; + ++ lib.optional withAiDj "ai-dj" + ++ lib.optional withPipewireVisualizer "audio-viz" + ++ lib.optional withMCPServer "mcp-server"; + + # A test is broken when using the AI DJ. This has been reported upstream and will be fixed in the + # next version. + # See: https://github.com/LargeModGames/spotatui/issues/478 + doCheck = !withAiDj; passthru.updateScript = nix-update-script { };