GNU bug report logs - #60630
[PATCH] guix: channels: Add description field.

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Sat, 7 Jan 2023 16:25:02 UTC

Severity: normal

Tags: patch, wontfix

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: [PATCH] guix: channels: Add description field.
Date: Sat,  7 Jan 2023 10:24:31 -0600
* guix/channels.scm (<channel>): Add channel description field and
comment disambiguating the type expected in an introduction field.
* doc/guix.scm (Invoking guix describe): Add channel description field
to channels record instance example.

This commit adds an optional description field to a channel intended to
describe the channel. Its purpose is similar to the description field
in a <package> record.
---
 doc/guix.texi     |  2 ++
 guix/channels.scm | 15 ++++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 24d99cbf24..483d2fbaa4 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5063,6 +5063,8 @@ $ guix describe -f channels
 (list (channel
         (name 'guix)
         (url "https://git.savannah.gnu.org/git/guix.git")
+        (description "The main GNU Guix channel providing the core
+package collection along with Guix and its documentation.")
         (commit
           "e0fa68c7718fffd33d81af415279d6ddb518f727")
         (introduction
diff --git a/guix/channels.scm b/guix/channels.scm
index d84228c47e..8acf3d8742 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -122,13 +122,14 @@ (define-module (guix channels)
 
 (define-record-type* <channel> channel make-channel
   channel?
-  (name      channel-name)
-  (url       channel-url)
-  (branch    channel-branch (default "master"))
-  (commit    channel-commit (default #f))
-  (introduction channel-introduction (default #f))
-  (location  channel-location
-             (default (current-source-location)) (innate)))
+  (name              channel-name)
+  (url               channel-url)
+  (description       channel-description (default #f)) ; string
+  (branch            channel-branch (default "master"))
+  (commit            channel-commit (default #f))
+  (introduction      channel-introduction (default #f)) ; <channel-introduction>
+  (location          channel-location
+                     (default (current-source-location)) (innate)))
 
 ;; Channel introductions.  A "channel introduction" provides a commit/signer
 ;; pair that specifies the first commit of the authentication process as well
-- 
2.38.1





This bug report was last modified 2 years and 194 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.