SDL: Don't use stdenv.cross

This commit is contained in:
John Ericson 2017-06-26 19:14:45 -04:00
parent 5d1e51a199
commit 80a857f8d7

View File

@ -4,6 +4,7 @@
, x11Support ? true, libXext, libICE, libXrandr
, pulseaudioSupport ? true, libpulseaudio
, OpenGL, CoreAudio, CoreServices, AudioUnit, Kernel, Cocoa
, hostPlatform
}:
# OSS is no longer supported, for it's much crappier than ALSA and
@ -37,7 +38,7 @@ stdenv.mkDerivation rec {
optional stdenv.isDarwin Cocoa;
buildInputs = let
notMingw = !(stdenv ? cross) || stdenv.cross.libc != "msvcrt";
notMingw = !hostPlatform.isMinGW;
in optional notMingw audiofile
++ optionals stdenv.isDarwin [ OpenGL CoreAudio CoreServices AudioUnit Kernel ];