blob: e16e8f1bc856894584c584508fa1c4e563aca0ab (
plain)
1
2
3
4
5
6
7
|
{ libGL, runCommand }:
runCommand "fakegl" {} ''
mkdir -p $out/include/{GL,OpenGL}
framework=${libGL}/Library/Frameworks/OpenGL.framework/Headers
ln -s $framework/gl.h $out/include/GL/
ln -s $framework/{gl{ext,types},OpenGLAvailability}.h $out/include/OpenGL/
''
|