diff options
author | williamvds <william@williamvds.me> | 2022-12-21 21:59:41 +0000 |
---|---|---|
committer | williamvds <william@williamvds.me> | 2022-12-21 22:14:22 +0000 |
commit | 15498d642f29c6dba3bf02c500fd46aa8cc1c6ba (patch) | |
tree | aada6d478cb235eb4cff9eda180c9d880cfd5a1d /pkgs/applications/networking/mkchromecast | |
parent | 651294288487f9e0b4dbff1ad8f5daf1fc6898aa (diff) |
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.
Diffstat (limited to 'pkgs/applications/networking/mkchromecast')
-rw-r--r-- | pkgs/applications/networking/mkchromecast/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/networking/mkchromecast/default.nix b/pkgs/applications/networking/mkchromecast/default.nix index b0ed32511910d..58f381f7a4ea5 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 \ |