git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13014 from Pamelloes/master

Darwin Fixes for Mesa and Freeglut

commit2fcd26c794213bf3432a5ad6853957c0b3454e7c authorBenjamin Staffin <benley@gmail.com> dateTue 26 Jul 2016, 15:54 (10 years ago) parent8a19caa8d278b4
2 files changed+10
pkgs/development/libraries/freeglut/default.nix+8 pkgs/development/libraries/mesa-darwin/default.nix+2
pkgs/development/libraries/freeglut/default.nix+8
@@ -11,6 +11,14 @@ in stdenv.mkDerivation {
1111
1212 buildInputs = [ libXi libXrandr libXxf86vm mesa xlibsWrapper cmake ];
1313
14+ cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [
15+ "-DOPENGL_INCLUDE_DIR=${mesa}/include"
16+ "-DOPENGL_gl_LIBRARY:FILEPATH=${mesa}/lib/libGL.dylib"
17+ "-DOPENGL_glu_LIBRARY:FILEPATH=${mesa}/lib/libGLU.dylib"
18+ "-DFREEGLUT_BUILD_DEMOS:BOOL=OFF"
19+ "-DFREEGLUT_BUILD_STATIC:BOOL=OFF"
20+ ];
21+
1422 meta = with stdenv.lib; {
1523 description = "Create and manage windows containing OpenGL contexts";
1624 longDescription = ''
pkgs/development/libraries/mesa-darwin/default.nix+2
@@ -25,6 +25,8 @@ let
2525 libffi libvdpau
2626 ] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenGL apple_sdk.sdk Xplugin ];
2727
28+ propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ OpenGL ];
29+
2830 postUnpack = ''
2931 ln -s darwin $sourceRoot/configs/current
3032 '';