channels: Expose the default channel in %default-channel.
* guix/channels(%default-guix-channel): New variable taken from the inner of %default-channels. (%default-channels): Refactored. Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
8ea2d7c2fa
commit
16c7472b33
|
@ -72,6 +72,7 @@
|
|||
openpgp-fingerprint->bytevector
|
||||
openpgp-fingerprint
|
||||
|
||||
%default-guix-channel
|
||||
%default-channels
|
||||
guix-channel?
|
||||
|
||||
|
@ -170,13 +171,16 @@ to the corresponding bytevector."
|
|||
;; URL of the default 'guix' channel.
|
||||
"https://git.savannah.gnu.org/git/guix.git")
|
||||
|
||||
(define %default-guix-channel
|
||||
(channel
|
||||
(name 'guix)
|
||||
(branch "master")
|
||||
(url %default-channel-url)
|
||||
(introduction %guix-channel-introduction)))
|
||||
|
||||
(define %default-channels
|
||||
;; Default list of channels.
|
||||
(list (channel
|
||||
(name 'guix)
|
||||
(branch "master")
|
||||
(url %default-channel-url)
|
||||
(introduction %guix-channel-introduction))))
|
||||
(list %default-guix-channel))
|
||||
|
||||
(define (guix-channel? channel)
|
||||
"Return true if CHANNEL is the 'guix' channel."
|
||||
|
|
Reference in New Issue