From 6b59355398832f8041bc9530325a82fc03a0a4b5 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sun, 10 Nov 2024 22:17:37 +0000 Subject: [PATCH] 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. --- pkgs/tools/typesetting/tex/texlive/bin.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix index d712b48b8cea..c65aceae112b 100644 --- a/pkgs/tools/typesetting/tex/texlive/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix @@ -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