mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
Merge branch 'master' into gnome-team
This commit is contained in:
commit
f62efeff76
243 changed files with 71242 additions and 78385 deletions
|
@ -1787,6 +1787,11 @@ MANIFEST."
|
|||
(cons (gexp-input thing output)
|
||||
(append-map entry->texlive-input deps))
|
||||
'()))))
|
||||
(define texlive-scripts-entry?
|
||||
(match-lambda
|
||||
(($ <manifest-entry> name version output thing deps)
|
||||
(or (string=? "texlive-scripts" name)
|
||||
(any texlive-scripts-entry? deps)))))
|
||||
(define texlive-inputs
|
||||
(append-map entry->texlive-input (manifest-entries manifest)))
|
||||
(define texlive-scripts
|
||||
|
@ -1815,9 +1820,12 @@ MANIFEST."
|
|||
#:create-all-directories? #t
|
||||
#:log-port (%make-void-port "w"))
|
||||
|
||||
;; Clear files that are going to be regenerated.
|
||||
;; Clear files that are going to be regenerated, or copied from
|
||||
;; a different place, in order to prevent failures during profile
|
||||
;; generation.
|
||||
(with-directory-excursion "/tmp/texlive/share/texmf-dist"
|
||||
(for-each delete-file
|
||||
(for-each (lambda (file)
|
||||
(when (file-exists? file) (delete-file file)))
|
||||
(list "fonts/map/dvipdfmx/updmap/kanjix.map"
|
||||
"fonts/map/dvips/updmap/builtin35.map"
|
||||
"fonts/map/dvips/updmap/download35.map"
|
||||
|
@ -1884,9 +1892,11 @@ MANIFEST."
|
|||
(copy-recursively a b)
|
||||
(invoke mktexlsr b)
|
||||
(install-file (string-append b "/ls-R") a))))))
|
||||
|
||||
(with-monad %store-monad
|
||||
(if (pair? texlive-inputs)
|
||||
;; `texlive-scripts' brings essential files to generate font maps.
|
||||
;; Therefore, it must be present in the profile. This check prevents
|
||||
;; incomplete modular TeX Live installations to generate errors.
|
||||
(if (any texlive-scripts-entry? (manifest-entries manifest))
|
||||
(gexp->derivation "texlive-font-maps" build
|
||||
#:substitutable? #f
|
||||
#:local-build? #t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue