mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-09 14:04:56 +00:00
harfbuzz: add CoreText support
This commit is contained in:
parent
e04f5c925e
commit
c93660a7a4
|
@ -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 ];
|
||||
|
|
|
@ -9767,10 +9767,12 @@ with pkgs;
|
|||
};
|
||||
libheimdal = heimdal.override { type = "lib"; };
|
||||
|
||||
harfbuzz = callPackage ../development/libraries/harfbuzz { };
|
||||
harfbuzz = callPackage ../development/libraries/harfbuzz {
|
||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices CoreText;
|
||||
};
|
||||
harfbuzz-icu = harfbuzz.override {
|
||||
withIcu = true;
|
||||
withGraphite2 = true;
|
||||
withIcu = true;
|
||||
};
|
||||
harfbuzz-icu-58 = harfbuzz-icu.override {
|
||||
icu = icu58;
|
||||
|
|
Loading…
Reference in a new issue