@@ -1,23 +1,27 @@
1−{ stdenv, lib, fetchurl, pkgconfig, freetype, harfbuzz, libiconv, qtbase, enableGUI ? true }:
1+{
2+ stdenv, lib, fetchurl, pkgconfig, autoreconfHook
3+, freetype, harfbuzz, libiconv, qtbase
4+, enableGUI ? true
5+}:
26
37stdenv.mkDerivation rec {
4− version = "1.7";
8+ version = "1.8.1";
59 name = "ttfautohint-${version}";
610
711 src = fetchurl {
812 url = "mirror://savannah/freetype/${name}.tar.gz";
9− sha256 = "1wh783pyg79ks5qbni61x7qngdhyfc33swrkcl5r1czdwhhlif9x";
13+ sha256 = "1yflnydzdfkr8bi29yf42hb6h6525a4rdid3w8qjfk8rpqh53pqj";
1014 };
1115
1216 postPatch = ''
1317 substituteInPlace configure --replace "macx-g++" "macx-clang"
1418 '';
1519
16− nativeBuildInputs = [ pkgconfig ];
20+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
1721
1822 buildInputs = [ freetype harfbuzz libiconv ] ++ lib.optional enableGUI qtbase;
1923
20− configureFlags = lib.optional (!enableGUI) "--with-qt=no";
24+ configureFlags = [ ''--with-qt=${if enableGUI then "${qtbase}/lib" else "no"}'' ];
2125
2226 enableParallelBuilding = true;
2327