Unverified Commit 6b593553 authored by Vincenzo Mantova's avatar Vincenzo Mantova Committed by GitHub
Browse files

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.
parent 15931153
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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