14 stdenv.mkDerivation rec {
16 pname = "ttfautohint";
19 url = "mirror://savannah/freetype/ttfautohint-${version}.tar.gz";
20 sha256 = "0zpqgihn3yh3v51ynxwr8asqrijvs4gv686clwv7bm8sawr4kfw7";
24 substituteInPlace configure --replace "macx-g++" "macx-clang"
36 ] ++ lib.optional enableGUI qtbase;
38 configureFlags = [ ''--with-qt=${if enableGUI then "${qtbase}/lib" else "no"}'' ];
40 # workaround https://github.com/NixOS/nixpkgs/issues/155458
41 preBuild = lib.optionalString stdenv.cc.isClang ''
45 enableParallelBuilding = true;
47 dontWrapQtApps = true;
50 description = "Automatic hinter for TrueType fonts";
51 mainProgram = "ttfautohint";
53 A library and two programs which take a TrueType font as the
54 input, remove its bytecode instructions (if any), and return a
55 new font where all glyphs are bytecode hinted using the
56 information given by FreeType’s auto-hinting module.
58 homepage = "https://www.freetype.org/ttfautohint";
59 license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
61 platforms = platforms.unix;