diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-28 18:48:42 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:20 +0200 |
commit | a1daaaf30bfe05fb4cae698f148546ae1ffd463b (patch) | |
tree | 7a682ff06e2ae6863c1b2f38a606b9d7e0167d83 /gnu/packages | |
parent | 228ae96b0560b2d76d4449d5060ce3e028c7a1da (diff) | |
download | guix-a1daaaf30bfe05fb4cae698f148546ae1ffd463b.tar.gz |
gnu: texlive-luatex: Set proper default values for "texmfcnf.lua".
* gnu/packages/tex.scm (texlive-luatex)[arguments]<#:phases>: Make TeX specific environment variables match those in "texmf.cnf". Change-Id: Idb80dbe849c1dcdeea234dbedba6d8f3668e2b3f
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/tex.scm | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 94d040e2af..6ce6ae6e8e 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -48040,8 +48040,22 @@ in the same way as BSD/GNU @code{getopt_long(3)} functions do.") (outputs '("out" "doc")) (build-system texlive-build-system) (arguments - (list #:texlive-latex-bin? #f - #:create-formats #~(list "dviluatex" "luatex"))) + (list + #:texlive-latex-bin? #f + #:create-formats #~(list "dviluatex" "luatex") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'customize-texmfcnf.lua + (lambda _ + (substitute* "web2c/texmfcnf.lua" + (("TEXMFDIST *=.*") "TEXMFDIST = os.getenv(\"GUIX_TEXMF\"),\n") + (("TEXMFSYSVAR *=.*") + "TEXMFSYSVAR = \"$TEXMFDIST/../texmf-var\",\n") + (("TEXMFSYSCONFIG *=.*") + "TEXMFSYSCONFIG = \"$TEXMFDIST/../texmf-config\",\n") + (("TEXMF *=.*") + "TEXMF = \"{$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,$TEXMFSYSVAR,$TEXMFDIST}\",\n"))))))) + (native-inputs (list texlive-kpathsea)) (propagated-inputs (list texlive-cm texlive-etex |