guix: Build texlive-configuration only when texlive-base is present.

Fixes <https://bugs.gnu.org/48519>.

* guix/profiles.scm (texlive-configuration): Build only if texlive-base is
present in the profile's manifest.
This commit is contained in:
Ricardo Wurmus 2021-05-20 16:26:46 +02:00
parent 26a69ae00c
commit bd8e7621b8
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 9 additions and 10 deletions

View File

@ -1745,16 +1745,15 @@ MANIFEST."
maproot "updmap/pdftex/")))))
#t)))
(with-monad %store-monad
(if (any (cut string-prefix? "texlive-" <>)
(map manifest-entry-name (manifest-entries manifest)))
(gexp->derivation "texlive-configuration" build
#:substitutable? #f
#:local-build? #t
#:properties
`((type . profile-hook)
(hook . texlive-configuration)))
(return #f))))
(mlet %store-monad ((texlive-base (manifest-lookup-package manifest "texlive-base")))
(if texlive-base
(gexp->derivation "texlive-configuration" build
#:substitutable? #f
#:local-build? #t
#:properties
`((type . profile-hook)
(hook . texlive-configuration)))
(return #f))))
(define %default-profile-hooks
;; This is the list of derivation-returning procedures that are called by