Cyril Roelandt <[email protected]> skribis: > + (for-each (lambda (p) > + (format #t "Package: ~a\n\ > +Version: ~a\n\ > +Description: ~a\n\ > +Depends: ~a\n\ > +Homepage: ~a\n\ > +License: ~a\n~%" > + (package-name p) > + (package-version p) > + (package-description p) > + (string-join (map car (package-direct-inputs > p)) ", ") > + (package-home-page p) > + (license-name (package-license p))))
No strong opinion, but this seems a bit redundant with ‘--search’, for example: --8<---------------cut here---------------start------------->8--- $ guix package -s guile | recsel -e 'name = "guile-cairo"' name: guile-cairo version: 1.4.1 location: gnu/packages/gtk.scm:424:2 homepage: http://www.nongnu.org/guile-cairo/ license: LGPL 3+ synopsis: Cairo bindings for GNU Guile description: Guile-Cairo wraps the Cairo graphics library for Guile Scheme. + Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API + stable, providing a firm base on which to do graphics work. Finally, and + importantly, it is pleasant to use. You get a powerful and well-maintained + graphics library with all of the benefits of Scheme: memory management, + exceptions, macros, and a dynamic programming environment. --8<---------------cut here---------------end--------------->8--- One advantage is that ‘--show’ is restricted to exact package name matches. WDYT? Besides, if ‘--show’ were to be added, it should be implemented in terms of ‘package->recutils’ like ‘--search’. Ludo’.
