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/<hash>-texlive-dvipng.bin-2019/ instead of
/nix/store/<hash>-texlive-combined-full-2019/.
This commit is contained in:
Dmitry Kalinkin 2020-03-30 21:07:08 -04:00
parent ee5f8636fe
commit 91c9f2ab5c
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -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