glfw: fix darwin build

This commit is contained in:
Matthew Bauer 2017-04-09 00:23:24 -05:00
parent f48cd9503d
commit 23d8b4f10c
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3

View File

@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, xlibsWrapper
, libXinerama, libXcursor
, darwin
}:
stdenv.mkDerivation rec {
@ -18,7 +19,7 @@ stdenv.mkDerivation rec {
buildInputs = [
cmake mesa libXrandr libXi libXxf86vm libXfixes xlibsWrapper
libXinerama libXcursor
];
] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Cocoa Kernel ]);
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";