blob: a44aeaa7f05b2d25cd81858f73cb9742901705b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
SDL,
fetchpatch,
fetchurl,
freetype,
stdenv,
# Boolean flags
enableSdltest ? (!stdenv.isDarwin),
}:
stdenv.mkDerivation (finalAttrs: {
pname = "SDL_ttf";
version = "2.0.11";
src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${finalAttrs.version}.tar.gz";
hash = "sha256-ckzYlez02jGaPvFkiStyB4vZJjKl2BIREmHN4kjrzbc=";
};
patches = [
# Bug #830: TTF_RenderGlyph_Shaded is broken
(fetchpatch {
url = "https://bugzilla-attachments.libsdl.org/attachments/830/renderglyph_shaded.patch.txt";
hash = "sha256-TZzlZe7gCRA8wZDHQZsqESAOGbLpJzIoB0HD8L6z3zE=";
})
];
patchFlags = [ "-p0" ];
buildInputs = [
SDL
freetype
];
nativeBuildInputs = [
SDL
freetype
];
configureFlags = [
(lib.enableFeature enableSdltest "-sdltest")
];
strictDeps = true;
meta = {
homepage = "https://github.com/libsdl-org/SDL_ttf";
description = "SDL TrueType library";
license = lib.licenses.zlib;
maintainers = lib.teams.sdl.members
++ (with lib.maintainers; [ ]);
inherit (SDL.meta) platforms;
};
})
|