From 91c9f2ab5c931ad036f6a5d1872c22d203b751af Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 30 Mar 2020 21:07:08 -0400 Subject: [PATCH] texlive.combine: set TEXMFCNF in binary wrapper This helps kpathsea to find texmf.cnf in some cases. For example, dvipng was trying to look for it in /nix/store/-texlive-dvipng.bin-2019/ instead of /nix/store/-texlive-combined-full-2019/. --- pkgs/tools/typesetting/tex/texlive/combine.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix index cb4bc14927de..ee4d0dfe588a 100644 --- a/pkgs/tools/typesetting/tex/texlive/combine.nix +++ b/pkgs/tools/typesetting/tex/texlive/combine.nix @@ -153,7 +153,8 @@ in buildEnv { rm "$link" makeWrapper "$target" "$link" \ --prefix PATH : "$out/bin:${perl}/bin" \ - --prefix PERL5LIB : "$PERL5LIB" + --prefix PERL5LIB : "$PERL5LIB" \ + --set-default TEXMFCNF "$TEXMFCNF" # avoid using non-nix shebang in $target by calling interpreter if [[ "$(head -c 2 "$target")" = "#!" ]]; then