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:
parent
ee5f8636fe
commit
91c9f2ab5c
@ -153,7 +153,8 @@ in buildEnv {
|
|||||||
rm "$link"
|
rm "$link"
|
||||||
makeWrapper "$target" "$link" \
|
makeWrapper "$target" "$link" \
|
||||||
--prefix PATH : "$out/bin:${perl}/bin" \
|
--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
|
# avoid using non-nix shebang in $target by calling interpreter
|
||||||
if [[ "$(head -c 2 "$target")" = "#!" ]]; then
|
if [[ "$(head -c 2 "$target")" = "#!" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user