nixpkgs/pkgs/misc/tex/texlive/setup-hook.sh

8 lines
185 B
Bash
Raw Normal View History

addTeXMFPath () {
if test -d "$1/share/texmf-nix"; then
export TEXINPUTS="${TEXINPUTS}${TEXINPUTS:+:}$1/share/texmf-nix//:"
fi
}
envHooks=(${envHooks[@]} addTeXMFPath)