texlivePackages.xetex: force XeTeX to use fontconfig on Darwin (#354963)

The recent stdenv changes causes XeTeX to use Core Text and Cocoa, which
prevents XeTeX from picking up the TeX Live fonts via the
FONTCONFIG_FILE variable. This change restores the previous behaviour by
forcing XeTeX to use fontconfig.
This commit is contained in:
Vincenzo Mantova 2024-11-10 22:17:37 +00:00 committed by GitHub
parent 1593115346
commit 6b59355398
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,6 +264,11 @@ core-big = stdenv.mkDerivation {
utils/{tpic2pdftex,vlna,xindy,xml2pmx,xpdfopen}
mkdir WorkDir
cd WorkDir
''
# force XeTeX to use fontconfig instead of Core Text, so that fonts can be made available via FONTCONFIG_FILE,
# by tricking configure into thinking that the relevant test result is already in the config cache
+ lib.optionalString stdenv.isDarwin ''
export kpse_cv_have_ApplicationServices=no
'';
configureFlags = common.configureFlags