services: configuration: Format a list of packages by their names.
* gnu/services/configuration.scm (generate-documentation): Format a list of packages by their names. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
640d27c2d6
commit
a5f473db6f
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
||||||
#:autoload (texinfo) (texi-fragment->stexi)
|
#:autoload (texinfo) (texi-fragment->stexi)
|
||||||
#:autoload (texinfo serialize) (stexi->texi)
|
#:autoload (texinfo serialize) (stexi->texi)
|
||||||
#:use-module (ice-9 curried-definitions)
|
#:use-module (ice-9 curried-definitions)
|
||||||
|
#:use-module (ice-9 format)
|
||||||
#:use-module (ice-9 match)
|
#:use-module (ice-9 match)
|
||||||
#:use-module (srfi srfi-1)
|
#:use-module (srfi srfi-1)
|
||||||
#:use-module (srfi srfi-34)
|
#:use-module (srfi srfi-34)
|
||||||
|
@ -370,6 +371,8 @@ DEFAULT."
|
||||||
(cond
|
(cond
|
||||||
((package? val)
|
((package? val)
|
||||||
(symbol->string (package->symbol val)))
|
(symbol->string (package->symbol val)))
|
||||||
|
(((list-of package?) val)
|
||||||
|
(format #f "(~{~a~^ ~})" (map package->symbol val)))
|
||||||
(else (str val))))
|
(else (str val))))
|
||||||
|
|
||||||
`(entry (% (heading
|
`(entry (% (heading
|
||||||
|
|
Reference in a new issue