build-bazel-package: added rm of extra local folders for toolchain configuration...
[NixPkgs.git] / pkgs / by-name / sd / SDL_ttf / package.nix
blobd243dc90ab122ca0275c47960302d1bb3eb3e58f
2   lib,
3   SDL,
4   fetchpatch,
5   fetchurl,
6   freetype,
7   stdenv,
8   # Boolean flags
9   enableSdltest ? (!stdenv.hostPlatform.isDarwin),
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "SDL_ttf";
14   version = "2.0.11";
16   src = fetchurl {
17     url = "https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${finalAttrs.version}.tar.gz";
18     hash = "sha256-ckzYlez02jGaPvFkiStyB4vZJjKl2BIREmHN4kjrzbc=";
19   };
21   patches = [
22     # Bug #830: TTF_RenderGlyph_Shaded is broken
23     (fetchpatch {
24       url = "https://bugzilla-attachments.libsdl.org/attachments/830/renderglyph_shaded.patch.txt";
25       hash = "sha256-TZzlZe7gCRA8wZDHQZsqESAOGbLpJzIoB0HD8L6z3zE=";
26     })
27   ];
29   patchFlags = [ "-p0" ];
31   buildInputs = [
32     SDL
33     freetype
34   ];
36   nativeBuildInputs = [
37     SDL
38     freetype
39   ];
41   configureFlags = [
42     (lib.enableFeature enableSdltest "sdltest")
43   ];
45   strictDeps = true;
47   meta = {
48     homepage = "https://github.com/libsdl-org/SDL_ttf";
49     description = "SDL TrueType library";
50     license = lib.licenses.zlib;
51     maintainers = lib.teams.sdl.members ++ (with lib.maintainers; [ ]);
52     inherit (SDL.meta) platforms;
53   };