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
texlive: TEXMFLOCAL should not point to TEXMFDIST #58026
Comments
Could you please provide an example of the override that doesn't work? |
I dropped my customization here: It boils down to adding a custom package (minionpro availble for my NUR overlay) and running:
in postBuild. |
I investigated your override. I see that you sneak the original updmap.cnf, then add your font to it and regenerate the mappings which go to share/texmf-var. At the same time our texlive setup just reuses prebuilt maps provided by
does nothing for us. Your change makes sense to me. Makes me wonder if we could do better. For example, not deleting [1] https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide#updmap.cfg |
@veprbl First of all thank you for taking such a careful look at my code snippet. I really appreciate it! First, yes, I sneak out and later sneak updmap.cfg back in. I do think that there are no adverse side-effects from not deleting updmap.cfg in texlive.combine. I will submit a PR to remove it. This will minimize my postBuild override to just:
That looks much cleaner :) As there is no real "hooks" functionality in our texlive package derivation, it seems to be a good idea to optimistically merge (by concatenation) separate updmap.cfg snippets. I will file a separate issue to discuss this. |
As discussed in NixOS#58026 (comment)
…-config. As discussed in NixOS#58026 (comment)
@veprbl Thank you! |
TEXMF defines the order in which files are read in texmf.cnf
The idea is that TEXMFSYSVAR and TEXMFCONFIG files take precedence over files distributed with TEXMFDIST, so there is a way for the user to override configuration files. Our texmf.cnf lists:
This seems all fine, except that our derivation also makes TEXMFLOCAL point to TEXMFDIST as well, and this destroys override-ability.
My suggestion is to use a separate and empty $out/share/texmf-local for TEXMFLOCAL.
The text was updated successfully, but these errors were encountered: