channels: Fix external channel builds.

This fixes a regression introduced in
ca71942445 whereby external channels would
fail to build due to the lack of (gcrypt …) modules.

* guix/channels.scm (channel-instance-derivations): Add 'guile-gcrypt'.
Pass it along CORE to 'build-channel-instance'.
This commit is contained in:
Ludovic Courtès 2018-09-05 22:42:16 +02:00
parent 00a43cb81c
commit cb341c1219
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -207,13 +207,18 @@ (define core-instance
(guix-channel? (channel-instance-channel instance)))
instances))
;; Guile-Gcrypt is a dependency of CORE-INSTANCE.
(define guile-gcrypt
(module-ref (resolve-interface '(gnu packages gnupg))
'guile-gcrypt))
(mlet %store-monad ((core (build-channel-instance core-instance)))
(mapm %store-monad
(lambda (instance)
(if (eq? instance core-instance)
(return core)
(build-channel-instance instance
(list core))))
(list core guile-gcrypt))))
instances)))
(define (whole-package-for-legacy name modules)