This commit is contained in:
Tim Schubert 2020-08-01 15:46:33 +02:00
parent b7b348c163
commit 3d86adb45f
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
41 changed files with 124 additions and 81 deletions

View file

@ -3,7 +3,7 @@ self: super:
# Based on https://gist.github.com/clefru/9ed1186bf0b76d27e0ad20cbd9966b87
texlive-tubslatex = super.lib.overrideDerivation (super.texlive.combine {
inherit (super.texlive) scheme-full;
tubslatex.pkgs = [ super.tubslatex ];
tubslatex.pkgs = [ (super.callPackage ../pkgs/tubslatex.nix {}) ];
}) (oldAttrs: {
postBuild = ''
# Save the udpmap.cfg because texlive.combine removes it.
@ -14,10 +14,8 @@ self: super:
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
'';