From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] guix package: add a "show" option. Date: Sun, 13 Jul 2014 23:32:33 +0200 Message-ID: <87fvi5aqry.fsf@gnu.org> References: <1405277641-2891-1-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6RNy-0003LT-Dm for guix-devel@gnu.org; Sun, 13 Jul 2014 17:32:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6RNs-0005fF-EE for guix-devel@gnu.org; Sun, 13 Jul 2014 17:32:42 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:51009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6RNs-0005eU-7E for guix-devel@gnu.org; Sun, 13 Jul 2014 17:32:36 -0400 In-Reply-To: <1405277641-2891-1-git-send-email-tipecaml@gmail.com> (Cyril Roelandt's message of "Sun, 13 Jul 2014 20:54:01 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Cyril Roelandt Cc: guix-devel@gnu.org Cyril Roelandt 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-in= puts p)) ", ") > + (package-home-page p) > + (license-name (package-license p)))) No strong opinion, but this seems a bit redundant with =E2=80=98--search=E2= =80=99, for example: --8<---------------cut here---------------start------------->8--- $ guix package -s guile | recsel -e 'name =3D "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-maintain= ed + 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 =E2=80=98--show=E2=80=99 is restricted to exact packa= ge name matches. WDYT? Besides, if =E2=80=98--show=E2=80=99 were to be added, it should be impleme= nted in terms of =E2=80=98package->recutils=E2=80=99 like =E2=80=98--search=E2=80=99. Ludo=E2=80=99.