chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / sd / SDL_ttf / package.nix
blobbd40d331b9b97783c289a0ecc74aef9ce60d7b11
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
52                   ++ (with lib.maintainers; [ ]);
53     inherit (SDL.meta) platforms;
54   };