at 17.09-beta 31 lines 863 B view raw
1{ stdenv, fetchurl, fetchpatch, SDL, freetype }: 2 3stdenv.mkDerivation rec { 4 name = "SDL_ttf-${version}"; 5 version = "2.0.11"; 6 7 src = fetchurl { 8 url = "http://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz"; 9 sha256 = "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j"; 10 }; 11 12 patches = [ 13 # Bug #830: TTF_RenderGlyph_Shaded is broken 14 (fetchpatch { 15 url = "https://bugzilla-attachments.libsdl.org/attachment.cgi?id=830"; 16 sha256 = "0cfznfzg1hs10wl349z9n8chw80i5adl3iwhq4y102g0xrjyb72d"; 17 }) 18 ]; 19 20 patchFlags = [ "-p0" ]; 21 22 buildInputs = [ SDL freetype ]; 23 24 meta = with stdenv.lib; { 25 description = "SDL TrueType library"; 26 license = licenses.zlib; 27 platforms = platforms.all; 28 homepage = https://www.libsdl.org/projects/SDL_ttf/release-1.2.html; 29 maintainers = with maintainers; [ abbradar ]; 30 }; 31}