SDL_compat: fix build on Darwin

On Darwin, libGL is the same as libGLU now, and the build system
doesn’t like having the same path passed twice for whatever
reason. Since libGLU always propagates libGL, just specify the former.
This commit is contained in:
Emily 2024-06-21 15:36:57 +01:00
parent 82c97b5cde
commit 95bd48a076

View File

@ -9,7 +9,6 @@
, autoSignDarwinBinariesHook
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
, openglSupport ? libGLSupported
, libGL
, libGLU
}:
@ -33,7 +32,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ SDL2 ]
++ optionals stdenv.hostPlatform.isDarwin [ libiconv Cocoa ]
++ optionals openglSupport [ libGL libGLU ];
++ optionals openglSupport [ libGLU ];
enableParallelBuilding = true;