Skip to content

Commit

Permalink
texlive.combine: set TEXMFCNF in binary wrapper
Browse files Browse the repository at this point in the history
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/.
  • Loading branch information
veprbl committed Mar 31, 2020
1 parent ee5f863 commit 91c9f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/tools/typesetting/tex/texlive/combine.nix
Expand Up @@ -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
Expand Down

0 comments on commit 91c9f2a

Please sign in to comment.