From 41e79c9e11005208bbd929588ed880cdd7727da7 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 12 Jul 2024 18:24:40 -0400 Subject: [PATCH] spotifyd: add `withJack` option this allows using the rodiojack backend added in https://github.com/Spotifyd/spotifyd/pull/1281 --- pkgs/by-name/sp/spotifyd/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sp/spotifyd/package.nix b/pkgs/by-name/sp/spotifyd/package.nix index bb819651bda479..e1393e447d2af6 100644 --- a/pkgs/by-name/sp/spotifyd/package.nix +++ b/pkgs/by-name/sp/spotifyd/package.nix @@ -8,6 +8,8 @@ openssl, withALSA ? stdenv.isLinux, alsa-lib, + withJack ? stdenv.isLinux, + libjack2, withPulseAudio ? config.pulseaudio or stdenv.isLinux, libpulseaudio, withPortAudio ? stdenv.isDarwin, @@ -37,7 +39,8 @@ rustPackages.rustPlatform.buildRustPackage rec { buildInputs = lib.optionals stdenv.isLinux [ openssl ] - ++ lib.optional withALSA alsa-lib + ++ lib.optional (withALSA || withJack) alsa-lib + ++ lib.optional withJack libjack2 ++ lib.optional withPulseAudio libpulseaudio ++ lib.optional withPortAudio portaudio ++ lib.optional (withMpris || withKeyring) dbus; @@ -45,6 +48,7 @@ rustPackages.rustPlatform.buildRustPackage rec { buildNoDefaultFeatures = true; buildFeatures = lib.optional withALSA "alsa_backend" + ++ lib.optional withJack "rodiojack_backend" ++ lib.optional withPulseAudio "pulseaudio_backend" ++ lib.optional withPortAudio "portaudio_backend" ++ lib.optional withMpris "dbus_mpris"