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

View file

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