diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index 3ec05f243fa9..28b9e2b5cbaa 100644 --- a/pkgs/servers/mpd/default.nix +++ b/pkgs/servers/mpd/default.nix @@ -38,6 +38,7 @@ soxr, # Outputs alsa-lib, + libao, libjack2, libpulseaudio, libshout, @@ -112,6 +113,7 @@ let soxr = [ soxr ]; # Output plugins alsa = [ alsa-lib ]; + ao = [ libao ]; jack = [ libjack2 ]; pipewire = [ pipewire ]; pulse = [ libpulseaudio ]; @@ -262,7 +264,9 @@ let ] ++ map (x: "-D${x}=enabled") features_ ++ map (x: "-D${x}=disabled") (lib.subtractLists features_ knownFeatures) - ++ lib.optional (builtins.elem "zeroconf" features_) "-Dzeroconf=avahi" + ++ lib.optional (builtins.elem "zeroconf" features_) ( + "-Dzeroconf=" + (if stdenv.hostPlatform.isDarwin then "bonjour" else "avahi") + ) ++ lib.optional (builtins.elem "systemd" features_) "-Dsystemd_system_unit_dir=etc/systemd/system" ++ lib.optional (builtins.elem "qobuz" features_) "-Dnlohmann_json=enabled";