Skip to content

Commit

Permalink
librespot: add optional support for Avahi (NixOS#369660)
Browse files Browse the repository at this point in the history
  • Loading branch information
ck3d authored Jan 12, 2025
2 parents 2da63c4 + c725c10 commit d5b9bb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/audio/librespot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
withPulseAudio ? false,
libpulseaudio,
withRodio ? true,
withAvahi ? false,
avahi-compat,
}:

rustPlatform.buildRustPackage rec {
Expand Down Expand Up @@ -41,13 +43,15 @@ rustPlatform.buildRustPackage rec {
buildInputs =
[ openssl ]
++ lib.optional withALSA alsa-lib
++ lib.optional withAvahi avahi-compat
++ lib.optional withPortAudio portaudio
++ lib.optional withPulseAudio libpulseaudio;

buildNoDefaultFeatures = true;
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";

Expand Down

0 comments on commit d5b9bb1

Please sign in to comment.