mpd: Darwin cleanup, ao output (#381626)

authored by Alexis Hildebrandt and committed by GitHub 67d6ef85 628670ba

+5 -1
+5 -1
pkgs/servers/mpd/default.nix
··· 38 38 soxr, 39 39 # Outputs 40 40 alsa-lib, 41 + libao, 41 42 libjack2, 42 43 libpulseaudio, 43 44 libshout, ··· 112 113 soxr = [ soxr ]; 113 114 # Output plugins 114 115 alsa = [ alsa-lib ]; 116 + ao = [ libao ]; 115 117 jack = [ libjack2 ]; 116 118 pipewire = [ pipewire ]; 117 119 pulse = [ libpulseaudio ]; ··· 262 264 ] 263 265 ++ map (x: "-D${x}=enabled") features_ 264 266 ++ map (x: "-D${x}=disabled") (lib.subtractLists features_ knownFeatures) 265 - ++ lib.optional (builtins.elem "zeroconf" features_) "-Dzeroconf=avahi" 267 + ++ lib.optional (builtins.elem "zeroconf" features_) ( 268 + "-Dzeroconf=" + (if stdenv.hostPlatform.isDarwin then "bonjour" else "avahi") 269 + ) 266 270 ++ lib.optional (builtins.elem "systemd" features_) "-Dsystemd_system_unit_dir=etc/systemd/system" 267 271 ++ lib.optional (builtins.elem "qobuz" features_) "-Dnlohmann_json=enabled"; 268 272