summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2019-03-21 11:57:20 +0100
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-03-24 11:47:09 -0400
commit6e71af274671c5ab5b94460bf1cbea238fd162c5 (patch)
tree48aae5669ec9368bd20b344dfe6db9a91796a712 /pkgs/tools/typesetting
parent39fc981fcac64a203307194ebf2cbdabdacdd97a (diff)
Create texmf-local directory separate from texmf-dist.
Motivated by https://github.com/NixOS/nixpkgs/issues/58026
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tex/texlive/combine.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/combine.nix b/pkgs/tools/typesetting/tex/texlive/combine.nix
index 7a06689c5e66..1a0a9b877bfe 100644
--- a/pkgs/tools/typesetting/tex/texlive/combine.nix
+++ b/pkgs/tools/typesetting/tex/texlive/combine.nix
@@ -87,7 +87,8 @@ in buildEnv {
export TEXMFSYSVAR="$out/share/texmf-var"
export PERL5LIB="$out/share/texmf/scripts/texlive"
'' +
- # patch texmf-{dist,local} -> texmf to be sure
+ # patch texmf-dist -> $out/share/texmf
+ # patch texmf-local -> $out/share/texmf-local
# TODO: perhaps do lua actions?
# tried inspiration from install-tl, sub do_texmf_cnf
''
@@ -99,8 +100,7 @@ in buildEnv {
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,\(TEXMFLOCAL[ ]*=[ ]*\)[^\,]*,\1\"$out/share/texmf-local\",g" \
-e "s,\$SELFAUTOLOC,$out,g" \
-e "s,selfautodir:/,$out/share/,g" \
-e "s,selfautodir:,$out/share/,g" \
@@ -116,7 +116,6 @@ in buildEnv {
rm ./texmf.cnf
sed \
-e 's,texmf-dist,texmf,g' \
- -e 's,texmf-local,texmf,g' \
-e "s,\$SELFAUTOLOC,$out,g" \
-e "s,\$SELFAUTODIR,$out/share,g" \
-e "s,\$SELFAUTOPARENT,$out/share,g" \
@@ -126,6 +125,8 @@ in buildEnv {
patchCnfLua "./texmfcnf.lua"
+ mkdir $out/share/texmf-local
+
rm updmap.cfg
)
'' +