about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/typesetting/tex/texlive/setup-hook.sh
blob: 5faef7fe5df5eea1e0324c8e506e965b3691e604 (plain) (blame)
1
2
3
4
5
6
7
addTeXMFPath () {
    if test -d "$1/share/texmf-nix"; then
        export TEXINPUTS="${TEXINPUTS}${TEXINPUTS:+:}$1/share/texmf-nix//:"
    fi
}

addEnvHooks "$targetOffset" addTeXMFPath