git.iko.soy/typeable/nixpkgs
on master help sign in
texlive.combine: also patch `texmfcnf.lua`

Fixes #14463.

commit954f381972cf11d1cede324d5eaf88804cdf9b6a authorRaymond Gauthier <jraygauthier@gmail.com> dateWed 13 Apr 2016, 23:34 (11 years ago) parent0435ac8
1 file changed+13
pkgs/tools/typesetting/tex/texlive-new/combine.nix+13
pkgs/tools/typesetting/tex/texlive-new/combine.nix+13
@@ -79,6 +79,19 @@ in buildEnv {
7979 -e "s,\$SELFAUTOGRANDPARENT,$out/share,g" \
8080 "$cnfOrig" > ./texmf.cnf
8181
82+ local cnfLuaOrig="$(realpath ./texmfcnf.lua)"
83+ rm ./texmfcnf.lua
84+ sed \
85+ -e 's,texmf-dist,texmf,g' \
86+ -e 's,texmf-local,texmf,g' \
87+ -e "s,\(TEXMFLOCAL[ ]*=[ ]*\)[^\,]*,\1\"$out/share/texmf\",g" \
88+ -e "s,\$SELFAUTOLOC,$out,g" \
89+ -e "s,selfautodir:/,$out/share/,g" \
90+ -e "s,selfautodir:,$out/share/,g" \
91+ -e "s,selfautoparent:/,$out/share/,g" \
92+ -e "s,selfautoparent:,$out/share/,g" \
93+ "$cnfLuaOrig" > ./texmfcnf.lua
94+
8295 rm updmap.cfg
8396 )
8497 '' +