diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2025-06-23 21:33:14 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2025-07-02 00:03:58 +0200 |
commit | cf15fad31ad58de2ca94d02e533d6ca46b9801a4 (patch) | |
tree | 598aa254c7ff2204ccd1b7e372f1fd676c00865b | |
parent | c33bc8008090bafda228e475dedc71cd06f56e4f (diff) |
gnu: texlive-minted: Fix runtime error.
Fixes <https://issues.guix.gnu.org/78868>.
* gnu/packages/tex.scm (texlive-minted)[arguments]: Add a phase to help the script finding `kpsewhich'.
Change-Id: Idb8f7bddc92ecde5fbc9217fdcfbaa5c132ec6e0
-rw-r--r-- | gnu/packages/tex.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index dc353ac678..fe94ac8049 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -84271,7 +84271,21 @@ configuration of its own fixed names, using @file{.mld} files.") (outputs '("out" "doc")) (build-system texlive-build-system) (arguments - (list #:link-scripts #~(list "latexminted.py"))) + (list + #:link-scripts #~(list "latexminted.py") + #:phases + #~(modify-phases %standard-phases + (add-after 'link-scripts 'wrap-latexminted + ;; `latexminted' relies on SELFAUTOLOC to locate `kpsewhich', but + ;; this variable is bogus in Guix because binaries are scattered + ;; across multiple directories. This phase sets SELFAUTOLOC to + ;; the specific directory containing `kpsewhich'. + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; XXX: Use `wrap-program' rather than `wrap-script' because + ;; with the latter, ".whl" files are not properly recognized. + (wrap-program (search-input-file outputs "bin/latexminted") + `("SELFAUTOLOC" = + (,(dirname (search-input-file inputs "bin/kpsewhich")))))))))) (inputs (list python)) (propagated-inputs (list texlive-catchfile |