mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
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:
parent
82c97b5cde
commit
95bd48a076
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user