Move tubslatex package to NUR repo

This commit is contained in:
Tim Schubert 2020-04-05 17:23:35 +02:00
parent e7340ffd7e
commit d0cd323c4c
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 9 additions and 27 deletions

View file

@ -1,29 +0,0 @@
self: super:
let
tubslatex = super.callPackage ../pkgs/tubslatex.nix {};
in {
# Based on https://gist.github.com/clefru/9ed1186bf0b76d27e0ad20cbd9966b87
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
'';
});
}