From fa56896456dd075d1db65105ed12c05e150276a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Sun, 6 Apr 2025 21:48:05 +0200 Subject: [PATCH] librespot: add withMDNS + withDNS-SD arguments librespot always included the zeroconf mdns backend prior to https://github.com/librespot-org/librespot/commit/94d174c33d30a4baa30799b4e9a85b63d4331b2c (included in release 0.6.0). This added the `with-libmdns` feature and enabled it by default, reflecting the settings of 0.5.0. Since the derivation disables all default features, switching to 0.6.0 silently removed the mdns zeroconf backend of librespot. Also removes `avahi-compat` as buildInput for `withAvahi` as it is not needed. --- pkgs/applications/audio/librespot/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/librespot/default.nix b/pkgs/applications/audio/librespot/default.nix index 6a29a96e470b..bcb2d3a739f8 100644 --- a/pkgs/applications/audio/librespot/default.nix +++ b/pkgs/applications/audio/librespot/default.nix @@ -15,6 +15,8 @@ libpulseaudio, withRodio ? true, withAvahi ? false, + withMDNS ? true, + withDNS-SD ? false, avahi-compat, }: @@ -44,13 +46,15 @@ rustPlatform.buildRustPackage rec { buildInputs = [ openssl ] ++ lib.optional withALSA alsa-lib - ++ lib.optional withAvahi avahi-compat + ++ lib.optional withDNS-SD avahi-compat ++ lib.optional withPortAudio portaudio ++ lib.optional withPulseAudio libpulseaudio; buildNoDefaultFeatures = true; buildFeatures = lib.optional withRodio "rodio-backend" + ++ lib.optional withMDNS "with-libmdns" + ++ lib.optional withDNS-SD "with-dns-sd" ++ lib.optional withALSA "alsa-backend" ++ lib.optional withAvahi "with-avahi" ++ lib.optional withPortAudio "portaudio-backend"