diff options
-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 |