lol
at 17.09-beta 41 lines 1.6 kB view raw
1{ stdenv, fetchurl, libXi, libXrandr, libXxf86vm, mesa_noglu, mesa_glu, xlibsWrapper, cmake }: 2 3let version = "3.0.0"; 4in stdenv.mkDerivation { 5 name = "freeglut-${version}"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/freeglut/freeglut-${version}.tar.gz"; 9 sha256 = "18knkyczzwbmyg8hr4zh8a1i5ga01np2jzd1rwmsh7mh2n2vwhra"; 10 }; 11 12 outputs = [ "out" "dev" ]; 13 14 buildInputs = [ libXi libXrandr libXxf86vm mesa_noglu mesa_glu xlibsWrapper cmake ]; 15 16 cmakeFlags = stdenv.lib.optionals stdenv.isDarwin [ 17 "-DOPENGL_INCLUDE_DIR=${mesa_noglu}/include" 18 "-DOPENGL_gl_LIBRARY:FILEPATH=${mesa_noglu}/lib/libGL.dylib" 19 "-DOPENGL_glu_LIBRARY:FILEPATH=${mesa_glu}/lib/libGLU.dylib" 20 "-DFREEGLUT_BUILD_DEMOS:BOOL=OFF" 21 "-DFREEGLUT_BUILD_STATIC:BOOL=OFF" 22 ]; 23 24 enableParallelBuilding = true; 25 26 meta = with stdenv.lib; { 27 description = "Create and manage windows containing OpenGL contexts"; 28 longDescription = '' 29 FreeGLUT is an open source alternative to the OpenGL Utility Toolkit 30 (GLUT) library. GLUT (and hence FreeGLUT) allows the user to create and 31 manage windows containing OpenGL contexts on a wide range of platforms 32 and also read the mouse, keyboard and joystick functions. FreeGLUT is 33 intended to be a full replacement for GLUT, and has only a few 34 differences. 35 ''; 36 homepage = http://freeglut.sourceforge.net/; 37 license = licenses.mit; 38 platforms = platforms.all; 39 maintainers = [ maintainers.bjornfor ]; 40 }; 41}