mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
Merge pull request #25680 from gnidorah/master2
openmpt123: don't build pulseaudio driver, libao: build both pulse and alsa drivers
This commit is contained in:
commit
dd22335c3b
@ -9,7 +9,7 @@ in stdenv.mkDerivation rec {
|
||||
sha256 = "0qp2nnz6pnl1d7yv9hcjyim7q6yax5881k1jxm8jfgjqagmz5k6p";
|
||||
};
|
||||
buildInputs = [ SDL2 pkgconfig flac libsndfile ];
|
||||
makeFlags = [ "NO_LTDL=1 TEST=0 EXAMPLES=0" ]
|
||||
makeFlags = [ "NO_PULSEAUDIO=1 NO_LTDL=1 TEST=0 EXAMPLES=0" ]
|
||||
++ stdenv.lib.optional (stdenv.isDarwin) "SHARED_SONAME=0";
|
||||
installFlags = "PREFIX=\${out}";
|
||||
|
||||
|
@ -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 ];
|
||||
|
||||
|
@ -8271,7 +8271,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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user