summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL2
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2023-05-28 16:29:45 +0200
committerYureka <yuka@yuka.dev>2023-05-29 12:44:36 +0200
commit4062535a3ef0b7f75bea95906e84a428bc9884f7 (patch)
treef23c7ec14a01ab45f9643352cf6e647663c0a27b /pkgs/development/libraries/SDL2
parent061f3a192d6c0f271977768f60b8157deaa6fec5 (diff)
downloadnixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.tar
nixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.tar.gz
nixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.tar.bz2
nixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.tar.lz
nixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.tar.xz
nixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.tar.zst
nixpkgs-4062535a3ef0b7f75bea95906e84a428bc9884f7.zip
SDL2: exclude mesa dependency on darwin
Diffstat (limited to 'pkgs/development/libraries/SDL2')
-rw-r--r--pkgs/development/libraries/SDL2/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix
index 8160554a060..7fe3fb38a1f 100644
--- a/pkgs/development/libraries/SDL2/default.nix
+++ b/pkgs/development/libraries/SDL2/default.nix
@@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
 
   dlopenPropagatedBuildInputs = [ ]
     # Propagated for #include <GLES/gl.h> in SDL_opengles.h.
-    ++ lib.optional openglSupport libGL
+    ++ lib.optional (openglSupport && !stdenv.isDarwin) libGL
     # Propagated for #include <X11/Xlib.h> and <X11/Xatom.h> in SDL_syswm.h.
     ++ lib.optionals x11Support [ libX11 ];