SDL2: add darwin frameworks

This commit is contained in:
Jude Taylor 2015-10-28 12:34:57 -07:00
parent c62cf0b5b3
commit 07849565ed
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,7 @@
, alsaSupport ? true, alsaLib ? null
, x11Support ? true, xlibsWrapper ? null, libXrandr ? null
, pulseaudioSupport ? true, libpulseaudio ? null
, AudioUnit, Cocoa, CoreAudio, CoreServices, ForceFeedback, OpenGL
}:
# OSS is no longer supported, for it's much crappier than ALSA and
@ -36,7 +37,8 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig audiofile ] ++
stdenv.lib.optional openglSupport mesa ++
stdenv.lib.optional alsaSupport alsaLib;
stdenv.lib.optional alsaSupport alsaLib ++
stdenv.lib.optionals stdenv.isDarwin [ AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL ];
# https://bugzilla.libsdl.org/show_bug.cgi?id=1431
dontDisableStatic = true;

View file

@ -8198,6 +8198,7 @@ let
alsaSupport = stdenv.isLinux;
x11Support = !stdenv.isCygwin;
pulseaudioSupport = false; # better go through ALSA
inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL;
};
SDL2_image = callPackage ../development/libraries/SDL2_image { };