diff options
Diffstat (limited to 'pkgs/tools/typesetting/tex/texlive/combine.nix')
-rw-r--r-- | pkgs/tools/typesetting/tex/texlive/combine.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix index 540ac10cfc528..76f4f9ba841b6 100644 --- a/pkgs/tools/typesetting/tex/texlive/combine.nix +++ b/pkgs/tools/typesetting/tex/texlive/combine.nix @@ -248,6 +248,17 @@ in (buildEnv { done } '' + + # texlive postactions (see TeXLive::TLUtils::_do_postaction_script) + (lib.concatMapStrings (pkg: '' + postaction='${pkg.postactionScript}' + case "$postaction" in + *.pl) postInterp=perl ;; + *.texlua) postInterp=texlua ;; + *) postInterp= ;; + esac + echo "postaction install script for ${pkg.pname}: ''${postInterp:+$postInterp }$postaction install $TEXMFROOT" + $postInterp "$TEXMFROOT/$postaction" install "$TEXMFROOT" + '') (lib.filter (pkg: pkg ? postactionScript) pkgList.tlpkg)) + # texlive post-install actions '' ln -sf "$TEXMFDIST"/scripts/texlive/updmap.pl "$out"/bin/updmap |