about summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorRaymond Gauthier <jraygauthier@gmail.com>2016-04-13 23:34:30 -0400
committerRaymond Gauthier <jraygauthier@gmail.com>2016-04-14 01:15:16 -0400
commit954f381972cf11d1cede324d5eaf88804cdf9b6a (patch)
treebd39c8b95d427754ad9b5c90aca2b5d335b863ef /pkgs/tools/typesetting
parent0435ac88948e53b90b6dad583364a8d040473dd6 (diff)
downloadnixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.tar
nixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.tar.gz
nixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.tar.bz2
nixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.tar.lz
nixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.tar.xz
nixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.tar.zst
nixlib-954f381972cf11d1cede324d5eaf88804cdf9b6a.zip
texlive.combine: also patch `texmfcnf.lua`
Fixes #14463.
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tex/texlive-new/combine.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive-new/combine.nix b/pkgs/tools/typesetting/tex/texlive-new/combine.nix
index 0619a3cc26c7..2818cbc03849 100644
--- a/pkgs/tools/typesetting/tex/texlive-new/combine.nix
+++ b/pkgs/tools/typesetting/tex/texlive-new/combine.nix
@@ -79,6 +79,19 @@ in buildEnv {
         -e "s,\$SELFAUTOGRANDPARENT,$out/share,g" \
         "$cnfOrig" > ./texmf.cnf
 
+      local cnfLuaOrig="$(realpath ./texmfcnf.lua)"
+      rm ./texmfcnf.lua
+      sed \
+        -e 's,texmf-dist,texmf,g' \
+        -e 's,texmf-local,texmf,g' \
+        -e "s,\(TEXMFLOCAL[ ]*=[ ]*\)[^\,]*,\1\"$out/share/texmf\",g" \
+        -e "s,\$SELFAUTOLOC,$out,g" \
+        -e "s,selfautodir:/,$out/share/,g" \
+        -e "s,selfautodir:,$out/share/,g" \
+        -e "s,selfautoparent:/,$out/share/,g" \
+        -e "s,selfautoparent:,$out/share/,g" \
+        "$cnfLuaOrig" > ./texmfcnf.lua
+
       rm updmap.cfg
     )
   '' +