mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
glfw: fix the install name id on darwin
Also change platforms to ‘unix‘.
This commit is contained in:
parent
ce6eb0cbbe
commit
de3c1f0dc9
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, xlibsWrapper
|
{ stdenv, fetchFromGitHub, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, xlibsWrapper
|
||||||
, libXinerama, libXcursor
|
, libXinerama, libXcursor
|
||||||
, darwin
|
, darwin, fixDarwinDylibNames
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmake mesa libXrandr libXi libXxf86vm libXfixes xlibsWrapper
|
cmake mesa libXrandr libXi libXxf86vm libXfixes xlibsWrapper
|
||||||
libXinerama libXcursor
|
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";
|
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
|
||||||
|
|
||||||
@ -28,6 +28,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "http://www.glfw.org/";
|
homepage = "http://www.glfw.org/";
|
||||||
license = licenses.zlib;
|
license = licenses.zlib;
|
||||||
maintainers = with maintainers; [ marcweber ];
|
maintainers = with maintainers; [ marcweber ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user