summary refs log tree commit diff
path: root/pkgs/tools/misc/ttfautohint
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2018-01-01 21:11:23 +0100
committerBastian Köcher <git@kchr.de>2018-01-02 13:44:21 +0100
commitf8427deea0da34d30ad0f75ed3a0ee0f1beda75b (patch)
tree083bbc64379df9ba30274fdf3c004996ed6f8594 /pkgs/tools/misc/ttfautohint
parent3e14b2826b1a33153001578fa8c8ed1aedef85b4 (diff)
downloadnixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.tar
nixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.tar.gz
nixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.tar.bz2
nixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.tar.lz
nixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.tar.xz
nixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.tar.zst
nixpkgs-f8427deea0da34d30ad0f75ed3a0ee0f1beda75b.zip
ttfautohint: 1.7 -> 1.8.1
Diffstat (limited to 'pkgs/tools/misc/ttfautohint')
-rw-r--r--pkgs/tools/misc/ttfautohint/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/tools/misc/ttfautohint/default.nix b/pkgs/tools/misc/ttfautohint/default.nix
index 5dcaea3ec1e..38dac37aa7d 100644
--- a/pkgs/tools/misc/ttfautohint/default.nix
+++ b/pkgs/tools/misc/ttfautohint/default.nix
@@ -1,23 +1,27 @@
-{ stdenv, lib, fetchurl, pkgconfig, freetype, harfbuzz, libiconv, qtbase, enableGUI ? true }:
+{
+  stdenv, lib, fetchurl, pkgconfig, autoreconfHook
+, freetype, harfbuzz, libiconv, qtbase
+, enableGUI ? true
+}:
 
 stdenv.mkDerivation rec {
-  version = "1.7";
+  version = "1.8.1";
   name = "ttfautohint-${version}";
 
   src = fetchurl {
     url = "mirror://savannah/freetype/${name}.tar.gz";
-    sha256 = "1wh783pyg79ks5qbni61x7qngdhyfc33swrkcl5r1czdwhhlif9x";
+    sha256 = "1yflnydzdfkr8bi29yf42hb6h6525a4rdid3w8qjfk8rpqh53pqj";
   };
 
   postPatch = ''
     substituteInPlace configure --replace "macx-g++" "macx-clang"
   '';
 
-  nativeBuildInputs = [ pkgconfig ];
+  nativeBuildInputs = [ pkgconfig autoreconfHook ];
 
   buildInputs = [ freetype harfbuzz libiconv ] ++ lib.optional enableGUI qtbase;
 
-  configureFlags = lib.optional (!enableGUI) "--with-qt=no";
+  configureFlags = [ ''--with-qt=${if enableGUI then "${qtbase}/lib" else "no"}'' ];
 
   enableParallelBuilding = true;