diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-04-21 06:20:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 06:20:45 +0100 |
commit | 082c5c8344361e51c6617a1a7c1c470d83902525 (patch) | |
tree | f2b2173f3e10248cdd989fb5e5eb1e17930ff2b8 /pkgs/development/libraries | |
parent | bedcd48104a3d877e5902d9416d27e9c106095ad (diff) | |
parent | f9f05c1e9273f223a6554731d06f6516d64da650 (diff) |
Merge pull request #120013 from Radvendii/sdl2-windows
SDL2: fix cross-compile to windows (mingw)
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/SDL2/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix index 92bd85b1e8c95..f70a46e2f8edd 100644 --- a/pkgs/development/libraries/SDL2/default.nix +++ b/pkgs/development/libraries/SDL2/default.nix @@ -2,7 +2,7 @@ , libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms , openglSupport ? libGLSupported, libGL , alsaSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid, alsaLib -, x11Support ? !stdenv.isCygwin && !stdenv.hostPlatform.isAndroid +, x11Support ? !stdenv.targetPlatform.isWindows && !stdenv.hostPlatform.isAndroid , libX11, xorgproto, libICE, libXi, libXScrnSaver, libXcursor , libXinerama, libXext, libXxf86vm, libXrandr , waylandSupport ? stdenv.isLinux && !stdenv.hostPlatform.isAndroid @@ -79,6 +79,7 @@ stdenv.mkDerivation rec { "--disable-oss" ] ++ optional (!x11Support) "--without-x" ++ optional alsaSupport "--with-alsa-prefix=${alsaLib.out}/lib" + ++ optional stdenv.targetPlatform.isWindows "--disable-video-opengles" ++ optional stdenv.isDarwin "--disable-sdltest"; # We remove libtool .la files when static libs are requested, |