New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added TEXMF variable to environment for tex wrappers, fixes #19279 #47370
Conversation
cc @veprbl |
Please rebase this on the |
@@ -155,7 +155,8 @@ in buildEnv { | |||
rm "$link" | |||
makeWrapper "$target" "$link" \ | |||
--prefix PATH : "$out/bin:${perl}/bin" \ | |||
--prefix PERL5LIB : "$out/share/texmf/scripts/texlive" | |||
--prefix PERL5LIB : "$out/share/texmf/scripts/texlive" \ | |||
--prefix TEXMF : "$out/share/texmf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, this is definitely not a case for --prefix
. Maybe --suffix
or --set-default
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also learned that they also use ;
for separator.
|
Turns out the problem is that diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix
index 8a01ac74414..a5a25a9a6dd 100644
--- a/pkgs/tools/typesetting/tex/texlive/combine.nix
+++ b/pkgs/tools/typesetting/tex/texlive/combine.nix
@@ -235,6 +235,17 @@ in buildEnv {
ln -s -t . ../texmf/doc/"$d"/*
)
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.
+ ''
+ (
+ unset TEXMFCNF
+ mtxrun --generate
+ )
''
+ bin.cleanBrokenLinks
; |
Documentation: http://www.pragma-ade.com/general/manuals/tools-mkiv.pdf Fixes: NixOS#19279 Closes: NixOS#47370
fixed in #47426 (which is in staging now and will take some time to hit master) |
Documentation: http://www.pragma-ade.com/general/manuals/tools-mkiv.pdf Fixes: NixOS#19279 Closes: NixOS#47370
Motivation for this change
See issue #19279
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)