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

8 lines
179 B
Bash
Raw Normal View History

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