Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / SDL_ttf / default.nix
blob5d353e3a6c0dd69055ddbb4920bc0862f12f0dfb
1 { lib, stdenv, fetchurl, fetchpatch, SDL, freetype }:
3 stdenv.mkDerivation rec {
4   pname = "SDL_ttf";
5   version = "2.0.11";
7   src = fetchurl {
8     url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
9     sha256 = "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j";
10   };
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   ];
20   patchFlags = [ "-p0" ];
22   buildInputs = [ SDL freetype ];
24   configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
26   meta = with lib; {
27     description = "SDL TrueType library";
28     license = licenses.zlib;
29     platforms = platforms.all;
30     homepage = "https://www.libsdl.org/projects/SDL_ttf/release-1.2.html";
31     maintainers = with maintainers; [ abbradar ];
32   };