@@ -1,16 +1,23 @@
1−{ stdenv, fetchurl, harfbuzz, pkgconfig, qt4 }:
1+{ stdenv, fetchurl, pkgconfig, freetype, harfbuzz, qtbase }:
22
33stdenv.mkDerivation rec {
4− version = "1.6";
4+ version = "1.7";
55 name = "ttfautohint-${version}";
6−
6+
77 src = fetchurl {
88 url = "mirror://savannah/freetype/${name}.tar.gz";
9− sha256 = "1r8vsznvh89ay35angxp3w1xljxjlpcv9wdjyn7m61n323vi6474";
9+ sha256 = "1wh783pyg79ks5qbni61x7qngdhyfc33swrkcl5r1czdwhhlif9x";
1010 };
11−
11+
12+ postPatch = ''
13+ substituteInPlace configure --replace "macx-g++" "macx-clang"
14+ '';
15+
1216 nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ harfbuzz qt4 ];
17+
18+ buildInputs = [ freetype harfbuzz qtbase ];
19+
20+ enableParallelBuilding = true;
1421
1522 meta = with stdenv.lib; {
1623 description = "An automatic hinter for TrueType fonts";
@@ -23,7 +30,7 @@ stdenv.mkDerivation rec {
2330 homepage = https://www.freetype.org/ttfautohint;
2431 license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
2532 maintainers = with maintainers; [ goibhniu ndowens ];
26− platforms = platforms.linux;
33+ platforms = platforms.unix;
2734 };
2835
2936}