SDL: propagate Cocoa dependency on darwin

This commit is contained in:
Vincent Laporte 2016-02-05 18:53:26 +01:00
parent 50f94c2751
commit ca535e4c1f

View File

@ -37,12 +37,13 @@ stdenv.mkDerivation rec {
optional alsaSupport alsaLib ++
optional stdenv.isLinux libcap ++
optional openglSupport mesa ++
optional pulseaudioSupport libpulseaudio;
optional pulseaudioSupport libpulseaudio ++
optional stdenv.isDarwin Cocoa;
buildInputs = let
notMingw = !(stdenv ? cross) || stdenv.cross.libc != "msvcrt";
in optional notMingw audiofile
++ optionals stdenv.isDarwin [ OpenGL CoreAudio CoreServices AudioUnit Kernel Cocoa ];
++ optionals stdenv.isDarwin [ OpenGL CoreAudio CoreServices AudioUnit Kernel ];
# XXX: By default, SDL wants to dlopen() PulseAudio, in which case
# we must arrange to add it to its RPATH; however, `patchelf' seems