From c725c10d451f8e7731c5345279027f99c089c38f Mon Sep 17 00:00:00 2001 From: Nikolaj Hey Hinnerskov Date: Tue, 31 Dec 2024 13:14:34 +0100 Subject: [PATCH] librespot: add optional support for Avahi --- pkgs/applications/audio/librespot/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/audio/librespot/default.nix b/pkgs/applications/audio/librespot/default.nix index bbc55b41de22e..8493793969f0c 100644 --- a/pkgs/applications/audio/librespot/default.nix +++ b/pkgs/applications/audio/librespot/default.nix @@ -14,6 +14,8 @@ withPulseAudio ? false, libpulseaudio, withRodio ? true, + withAvahi ? false, + avahi-compat, }: rustPlatform.buildRustPackage rec { @@ -41,6 +43,7 @@ rustPlatform.buildRustPackage rec { buildInputs = [ openssl ] ++ lib.optional withALSA alsa-lib + ++ lib.optional withAvahi avahi-compat ++ lib.optional withPortAudio portaudio ++ lib.optional withPulseAudio libpulseaudio; @@ -48,6 +51,7 @@ rustPlatform.buildRustPackage rec { buildFeatures = lib.optional withRodio "rodio-backend" ++ lib.optional withALSA "alsa-backend" + ++ lib.optional withAvahi "with-avahi" ++ lib.optional withPortAudio "portaudio-backend" ++ lib.optional withPulseAudio "pulseaudio-backend";