summary refs log tree commit diff
path: root/pkgs/tools/misc/ttfautohint
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-27 00:44:09 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-27 00:49:48 +0000
commit7adc86753a1b9ebe235653135415b86092b9c477 (patch)
treeabac9c1260f5e6a285fe4324030ea91c61f32fb7 /pkgs/tools/misc/ttfautohint
parent94713c6c091916f926a0a0e69e98a18e29c8c41d (diff)
downloadnixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.tar
nixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.tar.gz
nixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.tar.bz2
nixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.tar.lz
nixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.tar.xz
nixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.tar.zst
nixpkgs-7adc86753a1b9ebe235653135415b86092b9c477.zip
ttfautohint: 1.6 -> 1.7, Qt 4 -> Qt 5, support darwin
Diffstat (limited to 'pkgs/tools/misc/ttfautohint')
-rw-r--r--pkgs/tools/misc/ttfautohint/default.nix21
1 files changed, 14 insertions, 7 deletions
diff --git a/pkgs/tools/misc/ttfautohint/default.nix b/pkgs/tools/misc/ttfautohint/default.nix
index c302bd15c41..70320e9dbab 100644
--- a/pkgs/tools/misc/ttfautohint/default.nix
+++ b/pkgs/tools/misc/ttfautohint/default.nix
@@ -1,16 +1,23 @@
-{ stdenv, fetchurl, harfbuzz, pkgconfig, qt4 }:
+{ stdenv, fetchurl, pkgconfig, freetype, harfbuzz, qtbase }:
 
 stdenv.mkDerivation rec {
-  version = "1.6";
+  version = "1.7";
   name = "ttfautohint-${version}";
-  
+
   src = fetchurl {
     url = "mirror://savannah/freetype/${name}.tar.gz";
-    sha256 = "1r8vsznvh89ay35angxp3w1xljxjlpcv9wdjyn7m61n323vi6474";
+    sha256 = "1wh783pyg79ks5qbni61x7qngdhyfc33swrkcl5r1czdwhhlif9x";
   };
-  
+
+  postPatch = ''
+    substituteInPlace configure --replace "macx-g++" "macx-clang"
+  '';
+
   nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ harfbuzz qt4 ];
+
+  buildInputs = [ freetype harfbuzz qtbase ];
+
+  enableParallelBuilding = true;
 
   meta = with stdenv.lib; {
     description = "An automatic hinter for TrueType fonts";
@@ -23,7 +30,7 @@ stdenv.mkDerivation rec {
     homepage = https://www.freetype.org/ttfautohint;
     license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
     maintainers = with maintainers; [ goibhniu ndowens ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 
 }