bullet: fix build on darwin

This commit is contained in:
flurie 2021-11-18 21:34:32 -05:00 committed by Jonathan Ringer
parent c1f200061d
commit 181f7a7830

View File

@ -1,5 +1,12 @@
{ lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, freeglut
, Cocoa, OpenGL
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libGLU
, libGL
, freeglut
, Cocoa
, OpenGL
}:
stdenv.mkDerivation rec {
@ -37,6 +44,7 @@ stdenv.mkDerivation rec {
"-DCOCOA_LIBRARY=${Cocoa}/Library/Frameworks/Cocoa.framework"
"-DBUILD_BULLET2_DEMOS=OFF"
"-DBUILD_UNIT_TESTS=OFF"
"-DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF"
];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang