diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-04-25 20:30:22 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-08-21 21:01:21 +0200 |
commit | c93660a7a434246da36ed4913f235092f2f25a7c (patch) | |
tree | b34a2c71a2385356374fcbdd7377d4ad169ce166 /pkgs/development/libraries/harfbuzz | |
parent | e04f5c925e07840636c46f74b1069c64b1eb28c5 (diff) | |
download | nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.tar nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.tar.gz nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.tar.bz2 nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.tar.lz nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.tar.xz nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.tar.zst nixlib-c93660a7a434246da36ed4913f235092f2f25a7c.zip |
harfbuzz: add CoreText support
Diffstat (limited to 'pkgs/development/libraries/harfbuzz')
-rw-r--r-- | pkgs/development/libraries/harfbuzz/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/libraries/harfbuzz/default.nix b/pkgs/development/libraries/harfbuzz/default.nix index f75d08022c65..ff60afc1f2be 100644 --- a/pkgs/development/libraries/harfbuzz/default.nix +++ b/pkgs/development/libraries/harfbuzz/default.nix @@ -1,5 +1,7 @@ { stdenv, fetchurl, pkgconfig, glib, freetype, cairo, libintl , icu, graphite2, harfbuzz # The icu variant uses and propagates the non-icu one. +, ApplicationServices, CoreText +, withCoreText ? false , withIcu ? false # recommended by upstream as default, but most don't needed and it's big , withGraphite2 ? true # it is small and major distros do include it , python @@ -27,12 +29,17 @@ stdenv.mkDerivation { outputBin = "dev"; configureFlags = [ - ( "--with-graphite2=" + (if withGraphite2 then "yes" else "no") ) # not auto-detected by default - ( "--with-icu=" + (if withIcu then "yes" else "no") ) + # not auto-detected by default + "--with-coretext=${if withCoreText then "yes" else "no"}" + "--with-graphite2=${if withGraphite2 then "yes" else "no"}" + "--with-icu=${if withIcu then "yes" else "no"}" ]; nativeBuildInputs = [ pkgconfig libintl ]; - buildInputs = [ glib freetype cairo ]; # recommended by upstream + + buildInputs = [ glib freetype cairo ] # recommended by upstream + ++ stdenv.lib.optionals withCoreText [ ApplicationServices CoreText ]; + propagatedBuildInputs = [] ++ optional withGraphite2 graphite2 ++ optionals withIcu [ icu harfbuzz ]; |