From 80a857f8d7b797cfd661e2686c0f2e66d41255b5 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 26 Jun 2017 19:14:45 -0400 Subject: [PATCH] SDL: Don't use stdenv.cross --- pkgs/development/libraries/SDL/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/SDL/default.nix b/pkgs/development/libraries/SDL/default.nix index 8330dada4d3..eb470519b4e 100644 --- a/pkgs/development/libraries/SDL/default.nix +++ b/pkgs/development/libraries/SDL/default.nix @@ -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 ];