From 9de2f02af62ec9aa90202c53faf93e0ed43fc602 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sun, 18 Dec 2022 13:53:23 +0000 Subject: [PATCH] texlive.combine: remove unset TEXMCNF as mtxrun is already wrapped --- pkgs/tools/typesetting/tex/texlive/combine.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix index 759b2ba07226..4a341b55cc38 100644 --- a/pkgs/tools/typesetting/tex/texlive/combine.nix +++ b/pkgs/tools/typesetting/tex/texlive/combine.nix @@ -305,16 +305,10 @@ in (buildEnv { 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. + # caches for it. '' if [[ -e "$out/bin/mtxrun" ]]; then - ( - unset TEXMFCNF - mtxrun --generate - ) + mtxrun --generate fi '' + bin.cleanBrokenLinks +