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
This commit is contained in:
Nicolas Goaziou 2024-05-28 18:48:42 +02:00 committed by Ludovic Courtès
parent 228ae96b05
commit a1daaaf30b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -48040,8 +48040,22 @@ (define-public texlive-luatex
(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