Merge pull request #25308 from acowley/glfw-id

glfw: fix the install name id on darwin
This commit is contained in:
Daiderd Jordan 2017-05-01 22:08:42 +02:00 committed by GitHub
commit 1046723ff6

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, xlibsWrapper
, libXinerama, libXcursor
, darwin
, darwin, fixDarwinDylibNames
}:
stdenv.mkDerivation rec {
@ -19,15 +19,15 @@ 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 ]);
] ++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Cocoa Kernel fixDarwinDylibNames ]);
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
meta = with stdenv.lib; {
meta = with stdenv.lib; {
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
homepage = "http://www.glfw.org/";
license = licenses.zlib;
maintainers = with maintainers; [ marcweber ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}