Made OpenGL a propagated dependency for mesa on darwin (fixes a host of building errors, especially in haskell pacakges). Also fixed freeglut on darwin.
Signed-off-by: Pamelloes <pamelloes@gmail.com>
This commit is contained in:
@@ -11,6 +11,14 @@ in stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ libXi libXrandr libXxf86vm mesa xlibsWrapper cmake ];
|
||||
|
||||
cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [
|
||||
"-DOPENGL_INCLUDE_DIR=${mesa}/include"
|
||||
"-DOPENGL_gl_LIBRARY:FILEPATH=${mesa}/lib/libGL.dylib"
|
||||
"-DOPENGL_glu_LIBRARY:FILEPATH=${mesa}/lib/libGLU.dylib"
|
||||
"-DFREEGLUT_BUILD_DEMOS:BOOL=OFF"
|
||||
"-DFREEGLUT_BUILD_STATIC:BOOL=OFF"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Create and manage windows containing OpenGL contexts";
|
||||
longDescription = ''
|
||||
|
||||
Reference in New Issue
Block a user