diff options
author | Andreas Enge <andreas@enge.fr> | 2015-12-30 11:24:26 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2015-12-30 11:24:26 +0100 |
commit | f95dad899b9c2aeec22a7000ec693fe6dff3b3c5 (patch) | |
tree | ea0acae515768aa3c5ff5b5f34e34686eb7ca6aa /gnu/packages | |
parent | 826244f01ac4aa5e3cf6a38093cd1bde30876779 (diff) | |
download | guix-f95dad899b9c2aeec22a7000ec693fe6dff3b3c5.tar guix-f95dad899b9c2aeec22a7000ec693fe6dff3b3c5.tar.gz |
gnu: texlive: Patch texmfcnf.lua.
* gnu/packages/texlive.scm (texlive): Patch texmfcnf.lua to point to the
absolute texlive-texmf tree.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/texlive.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/texlive.scm b/gnu/packages/texlive.scm index 6480b2561e..b6c996edfa 100644 --- a/gnu/packages/texlive.scm +++ b/gnu/packages/texlive.scm @@ -191,7 +191,8 @@ This package contains the binaries.") (alist-cons-after 'patch-source-shebangs 'texmf-config (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((share (string-append (assoc-ref outputs "out") "/share")) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share")) (texmfroot (string-append share "/texmf-dist/web2c")) (texmfcnf (string-append texmfroot "/texmf.cnf")) (texlive-bin (assoc-ref inputs "texlive-bin")) @@ -201,6 +202,10 @@ This package contains the binaries.") (substitute* texmfcnf (("TEXMFROOT = \\$SELFAUTOPARENT") (string-append "TEXMFROOT = " share))) + ;; Register paths in texmfcnf.lua, needed for context. + (substitute* (string-append texmfroot "/texmfcnf.lua") + (("selfautodir:") out) + (("selfautoparent:") (string-append share "/"))) ;; Set path to TeXLive Perl modules (setenv "PERL5LIB" (string-append (getenv "PERL5LIB") ":" tlpkg)) |