about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-02-06 05:12:00 +0300
committerNikolay Amiantov <ab@fmap.me>2016-02-06 05:18:28 +0300
commited9e286fa2e1850703e9095cdcc5545381a55ae4 (patch)
tree8fdbc1209588f6c74080b1eae341e7b19e7a0d47
parentc5379e7da80bbc5cf003daf2672a27d2b170bbaf (diff)
downloadnixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.tar
nixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.tar.gz
nixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.tar.bz2
nixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.tar.lz
nixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.tar.xz
nixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.tar.zst
nixlib-ed9e286fa2e1850703e9095cdcc5545381a55ae4.zip
SDL_ttf: adopt, add patch to fix onscripter-en
-rw-r--r--pkgs/development/libraries/SDL_ttf/default.nix27
1 files changed, 21 insertions, 6 deletions
diff --git a/pkgs/development/libraries/SDL_ttf/default.nix b/pkgs/development/libraries/SDL_ttf/default.nix
index 696b6bd0ac8f..9dc6b9983e66 100644
--- a/pkgs/development/libraries/SDL_ttf/default.nix
+++ b/pkgs/development/libraries/SDL_ttf/default.nix
@@ -1,18 +1,33 @@
-{ stdenv, fetchurl, SDL, freetype }:
+{ stdenv, fetchurl, fetchpatch, SDL, freetype }:
 
-stdenv.mkDerivation {
-  name = "SDL_ttf-2.0.11";
+stdenv.mkDerivation rec {
+  name = "SDL_ttf-${version}";
+  version = "2.0.11";
 
   src = fetchurl {
-    url = http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz;
+    url = "http://www.libsdl.org/projects/SDL_ttf/release/${name}.tar.gz";
     sha256 = "1dydxd4f5kb1288i5n5568kdk2q7f8mqjr7i7sd33nplxjaxhk3j";
   };
 
-  buildInputs = [SDL freetype];
+  patches = [
+    # Bug #830: TTF_RenderGlyph_Shaded is broken
+    (fetchpatch {
+      url = "https://bugzilla-attachments.libsdl.org/attachment.cgi?id=830";
+      sha256 = "0cfznfzg1hs10wl349z9n8chw80i5adl3iwhq4y102g0xrjyb72d";
+    })
+  ];
+
+  patchFlags = [ "-p0" ];
+
+  buildInputs = [ SDL freetype ];
 
   postInstall = "ln -s $out/include/SDL/SDL_ttf.h $out/include/";
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "SDL TrueType library";
+    license = licenses.zlib;
+    platforms = platforms.all;
+    homepage = https://www.libsdl.org/projects/SDL_ttf/release-1.2.html;
+    maintainers = with maintainers; [ abbradar ];
   };
 }