2 stdenv, lib, fetchurl, pkg-config, autoreconfHook
3 , freetype, harfbuzz, libiconv, qtbase
7 stdenv.mkDerivation rec {
12 url = "mirror://savannah/freetype/${pname}-${version}.tar.gz";
13 sha256 = "0zpqgihn3yh3v51ynxwr8asqrijvs4gv686clwv7bm8sawr4kfw7";
17 substituteInPlace configure --replace "macx-g++" "macx-clang"
20 nativeBuildInputs = [ pkg-config autoreconfHook ];
22 buildInputs = [ freetype harfbuzz libiconv ] ++ lib.optional enableGUI qtbase;
24 configureFlags = [ ''--with-qt=${if enableGUI then "${qtbase}/lib" else "no"}'' ];
26 enableParallelBuilding = true;
28 dontWrapQtApps = true;
31 description = "An automatic hinter for TrueType fonts";
33 A library and two programs which take a TrueType font as the
34 input, remove its bytecode instructions (if any), and return a
35 new font where all glyphs are bytecode hinted using the
36 information given by FreeType’s auto-hinting module.
38 homepage = "https://www.freetype.org/ttfautohint";
39 license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
40 maintainers = with maintainers; [ goibhniu ];
41 platforms = platforms.unix;