tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
SDL_ttf: adopt, add patch to fix onscripter-en
Nikolay Amiantov
10 years ago
ed9e286f
c5379e7d
+21
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
SDL_ttf
default.nix
+21
-6
pkgs/development/libraries/SDL_ttf/default.nix
···
1
1
-
{ stdenv, fetchurl, SDL, freetype }:
1
1
+
{ stdenv, fetchurl, fetchpatch, SDL, freetype }:
2
2
3
3
-
stdenv.mkDerivation {
4
4
-
name = "SDL_ttf-2.0.11";
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "SDL_ttf-${version}";
5
5
+
version = "2.0.11";
5
6
6
7
src = fetchurl {
7
7
-
url = http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz;
8
8
+
url = "http://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
8
9
sha256 = "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j";
9
10
};
10
11
11
11
-
buildInputs = [SDL freetype];
12
12
+
patches = [
13
13
+
# Bug #830: TTF_RenderGlyph_Shaded is broken
14
14
+
(fetchpatch {
15
15
+
url = "https://bugzilla-attachments.libsdl.org/attachment.cgi?id=830";
16
16
+
sha256 = "0cfznfzg1hs10wl349z9n8chw80i5adl3iwhq4y102g0xrjyb72d";
17
17
+
})
18
18
+
];
19
19
+
20
20
+
patchFlags = [ "-p0" ];
21
21
+
22
22
+
buildInputs = [ SDL freetype ];
12
23
13
24
postInstall = "ln -s $out/include/SDL/SDL_ttf.h $out/include/";
14
25
15
15
-
meta = {
26
26
+
meta = with stdenv.lib; {
16
27
description = "SDL TrueType library";
28
28
+
license = licenses.zlib;
29
29
+
platforms = platforms.all;
30
30
+
homepage = https://www.libsdl.org/projects/SDL_ttf/release-1.2.html;
31
31
+
maintainers = with maintainers; [ abbradar ];
17
32
};
18
33
}