diff options
author | John Hamelink <me@johnhame.link> | 2023-09-09 04:22:09 +0100 |
---|---|---|
committer | John Hamelink <me@johnhame.link> | 2023-09-09 04:22:09 +0100 |
commit | cb0549a77360f0da0867e32a1137e37668705179 (patch) | |
tree | 2a21de85aa56bb7344367a317548261ab6f2802f /pkgs/applications/audio/spotify-player | |
parent | 84de2599f76c7c806b3e2ca1b46bd64bea7d1db6 (diff) |
spotify-player: Fix darwin support
By requiring alsa-lib as a dependency when using Rodio, this package would not build under MacOS, since its alsa-lib dependency does not support MacOS. The alsa-lib dependency is only necessary for Linux compilation, so add a check for Linux.
Diffstat (limited to 'pkgs/applications/audio/spotify-player')
-rw-r--r-- | pkgs/applications/audio/spotify-player/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/audio/spotify-player/default.nix b/pkgs/applications/audio/spotify-player/default.nix index cd2d050c9a963..4bf9380e35686 100644 --- a/pkgs/applications/audio/spotify-player/default.nix +++ b/pkgs/applications/audio/spotify-player/default.nix @@ -60,7 +60,7 @@ rustPlatform.buildRustPackage rec { ++ lib.optionals withSixel [ libsixel ] ++ lib.optionals (withAudioBackend == "alsa") [ alsa-lib ] ++ lib.optionals (withAudioBackend == "pulseaudio") [ libpulseaudio ] - ++ lib.optionals (withAudioBackend == "rodio") [ alsa-lib ] + ++ lib.optionals (withAudioBackend == "rodio" && stdenv.isLinux) [ alsa-lib ] ++ lib.optionals (withAudioBackend == "portaudio") [ portaudio ] ++ lib.optionals (withAudioBackend == "jackaudio") [ libjack2 ] ++ lib.optionals (withAudioBackend == "rodiojack") [ alsa-lib libjack2 ] |