15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
20 owner = "frankheckenbach";
23 hash = "sha256-6TDNGoMeBLnucmHRgEDIVWcjlJb7N0sTluqBwRMMWn4=";
26 # GL_DYLIB is hardcoded to an impure path
27 # /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
28 # and breaks build on recent macOS versions
30 substituteInPlace m4/gl.m4 \
31 --replace ' -dylib_file $GL_DYLIB: $GL_DYLIB' ""
41 ] ++ (if stdenv.isDarwin then [
51 "--with-ft-prefix=${lib.getDev freetype}"
54 enableParallelBuilding = true;
57 install -Dm644 src/FTSize.h -t ${placeholder "out"}/include/FTGL
58 install -Dm644 src/FTFace.h -t ${placeholder "out"}/include/FTGL
62 homepage = "https://github.com/frankheckenbach/ftgl";
63 description = "Font rendering library for OpenGL applications";
65 FTGL is a free cross-platform Open Source C++ library that uses Freetype2
66 to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
67 pixmaps, texture maps, outlines, polygon mesh, and extruded polygon
70 license = licenses.mit;
71 maintainers = with maintainers; [ AndersonTorres ];
72 platforms = platforms.unix;