diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-08 14:42:36 +0200 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-06-29 12:13:03 +0100 |
commit | 8ec35d852b6d80ee0ada907f1bb196c1d81c1d8c (patch) | |
tree | 233e08d68f283299da9724e053909d6bb4559d41 /gnu | |
parent | aefe19f23960ff68d35a618c94e7302802a0a6ca (diff) |
gnu: texlive-libkpathsea: Fix TEXMFCACHE location.
* gnu/packages/tex.scm (texlive-libkpathsea)[arguments]<#:phases>: Set
TEXMFCACHE in "texmf.cnf" to "$HOME/.texliveYYYY/texmf-var/" instead of
"{$GUIX_TEXMF}", which creates a "{" directory in the current working
directory.
* guix/build/texlive-build-system.scm (set-texmfvar): New function.
(%standard-phases): Add SET-TEXMFVAR phase.
Change-Id: Idff2fd5279e12d35683c863528aac3b5efa9b22b
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/tex.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 70af0ee83f..104fa11493 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> ;;; Copyright © 2020, 2021 Paul Garlick <pgarlick@tourbillion-technology.com> ;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> -;;; Copyright © 2021-2023 Nicolas Goaziou <mail@nicolasgoaziou.fr> +;;; Copyright © 2021-2024 Nicolas Goaziou <mail@nicolasgoaziou.fr> ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net> ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz> ;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru> @@ -224,6 +224,10 @@ "TEXMF = {$GUIX_TEXMF}\n") (("\\$SELFAUTOLOC(/share/texmf-dist/web2c)" _ suffix) (string-append #$output suffix)) + ;; Ignore system-wide cache. Use local one, by default + ;; "$HOME/.texliveYYYY/texmf-var/". + (("^TEXMFCACHE = .*") + "TEXMFCACHE = $TEXMFVAR\n") ;; Don't truncate lines. (("^error_line = .*$") "error_line = 254\n") (("^half_error_line = .*$") "half_error_line = 238\n") |