projects/guix·commit 8ca489aa

gnu: texlive-local-tree: Populate ls-R also with foreign packages.

8ca489aa · Nicolas Goaziou <[email protected]> · 2026-06-30 22:01:48 +02:00

* gnu/packages/tex.scm (texlive-local-tree): Populate ls-R file with all
packages, including non TeX Live packages.
Commit
8ca489aa1987bba17719cee25b0193d459350bd8
Parents
41888099

Changes

1 files changed · +8 −4

FileStatusAddDelContent
gnu/packages/tex.scmmodified+8−4View file

gnu/packages/tex.scm

View file
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index a8a5003..4f689ae 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1329,15 +1329,19 @@ documentation in the TeX format."
(add-before 'unpack 'initialize-tree
(lambda* (#:key inputs #:allow-other-keys)
;; Build complete TeX Live tree in #$output, barring the
- ;; files going to be regenerated.
- (let ((texlive-outputs
+ ;; files going to be regenerated. Tree includes both
+ ;; genuine TeX Live packages and packages providing
+ ;; TeX-related file among inputs.
+ (let ((texlive-inputs
(filter-map
(match-lambda
(`(,label . ,dir)
- (and (string-prefix? "texlive-" label)
+ (and (or (string-prefix? "texlive-" label)
+ (file-exists?
+ (string-append dir "/share/texmf-dist")))
dir)))
inputs)))
- (union-build #$output texlive-outputs
+ (union-build #$output texlive-inputs
#:create-all-directories? #t
#:log-port (%make-void-port "w")))
;; Remove files that are going to be regenerated.