about summary refs log tree commit diff
path: root/pkgs/applications/networking/mkchromecast/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/mkchromecast/default.nix')
-rw-r--r--pkgs/applications/networking/mkchromecast/default.nix5
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 \