From 91c304030a509c1913d6baf5d274e2d078d10bfd Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Thu, 27 Sep 2018 11:54:40 -0400 Subject: texlive: generate MkIV caches Documentation: http://www.pragma-ade.com/general/manuals/tools-mkiv.pdf Fixes: #19279 Closes: #47370 --- pkgs/tools/typesetting/tex/texlive/combine.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix index 8a01ac744145..f76b71ced3cf 100644 --- a/pkgs/tools/typesetting/tex/texlive/combine.nix +++ b/pkgs/tools/typesetting/tex/texlive/combine.nix @@ -235,6 +235,19 @@ in buildEnv { ln -s -t . ../texmf/doc/"$d"/* ) done + '' + + # MkIV uses its own lookup mechanism and we need to initialize + # caches for it. Unsetting TEXMFCNF is needed to let mtxrun + # determine it from kpathsea so that the config path is given with + # "selfautodir:" as it will be in runtime. This is important because + # the cache is identified by a hash of this path. + '' + if [[ -e "$out/bin/mtxrun" ]]; then + ( + unset TEXMFCNF + mtxrun --generate + ) + fi '' + bin.cleanBrokenLinks ; -- cgit 1.4.1