Add overlay for tubslatex
This commit is contained in:
parent
ddb6622375
commit
f911b2c574
4 changed files with 78 additions and 1 deletions
28
overlays/tubslatex.nix
Normal file
28
overlays/tubslatex.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
self: super:
|
||||
let
|
||||
tubslatex = super.callPackage ../pkgs/tubslatex.nix {};
|
||||
in {
|
||||
texlive-tubs = super.lib.overrideDerivation (super.texlive.combine {
|
||||
inherit (super.texlive) scheme-full;
|
||||
tubslatex.pkgs = [ tubslatex ];
|
||||
}) (oldAttrs: {
|
||||
postBuild = ''
|
||||
# Save the udpmap.cfg because texlive.combine removes it.
|
||||
cat $out/share/texmf/web2c/updmap.cfg > $out/share/texmf/web2c/updmap.cfg.1
|
||||
'' + oldAttrs.postBuild + ''
|
||||
# Move updmap.cfg into its original place and rerun mktexlsr, so that kpsewhich finds it
|
||||
rm $out/share/texmf/web2c/updmap.cfg || true
|
||||
cat $out/share/texmf/web2c/updmap.cfg.1 > $out/share/texmf/web2c/updmap.cfg
|
||||
rm $out/share/texmf/web2c/updmap.cfg.1
|
||||
perl `type -P mktexlsr.pl` $out/share/texmf
|
||||
|
||||
yes | perl `type -P updmap.pl` --sys --syncwithtrees --force || true
|
||||
perl `type -P updmap.pl` --sys --enable Map=NexusProSerif.map --enable Map=NexusProSans.map
|
||||
|
||||
# Regenerate .map files.
|
||||
perl `type -P updmap.pl` --sys
|
||||
'';
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue