libao: build both pulse and alsa drivers

This commit is contained in:
gnidorah 2017-05-12 12:23:56 +03:00
parent a3539a0dc6
commit 7da0b964de
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,8 @@ stdenv.mkDerivation rec {
buildInputs =
[ pkgconfig ] ++
lib.optional stdenv.isLinux (if usePulseAudio then libpulseaudio else alsaLib) ++
lib.optional usePulseAudio libpulseaudio ++
lib.optional stdenv.isLinux alsaLib ++
lib.optional stdenv.isLinux libcap ++
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];

View File

@ -8198,7 +8198,7 @@ with pkgs;
libagar_test = callPackage ../development/libraries/libagar/libagar_test.nix { };
libao = callPackage ../development/libraries/libao {
usePulseAudio = config.pulseaudio or true;
usePulseAudio = config.pulseaudio or stdenv.isLinux;
inherit (darwin.apple_sdk.frameworks) CoreAudio CoreServices AudioUnit;
};