From 15498d642f29c6dba3bf02c500fd46aa8cc1c6ba Mon Sep 17 00:00:00 2001 From: williamvds Date: Wed, 21 Dec 2022 21:59:41 +0000 Subject: [PATCH] mkchromecast: Add Sonos support mkchromecast optionally depends on the soco library, which provides Sonos speaker support (https://github.com/muammar/mkchromecast/blob/master/README.md#sonos-support) Add an option which brings in the soco dependency, enable it by default for convenience. --- pkgs/applications/networking/mkchromecast/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/mkchromecast/default.nix b/pkgs/applications/networking/mkchromecast/default.nix index b0ed3251191..58f381f7a4e 100644 --- a/pkgs/applications/networking/mkchromecast/default.nix +++ b/pkgs/applications/networking/mkchromecast/default.nix @@ -12,6 +12,7 @@ , youtube-dl , opusTools , gst_all_1 +, enableSonos ? true }: let packages = [ vorbis-tools @@ -37,7 +38,7 @@ python3Packages.buildPythonApplication rec { sha256 = "sha256-dxsIcBPrZaXlsfzOEXhYj2qoK5LRducJG2ggMrMMl9Y="; }; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = with python3Packages; ([ PyChromecast psutil mutagen @@ -45,7 +46,7 @@ python3Packages.buildPythonApplication rec { netifaces requests pyqt5 - ]; + ] ++ lib.optionals enableSonos [ soco ]); postPatch = '' substituteInPlace setup.py \