From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: [Feature idea] Adding wikidata, wikipedia & screenshot-url fields to package-recipes Date: Sat, 3 Nov 2018 08:53:31 +0100 Message-ID: References: <8745311c-0b40-a590-41dc-3c2b84d24faf@riseup.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009da57a0579bdf391" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIqki-0003kI-9p for guix-devel@gnu.org; Sat, 03 Nov 2018 03:53:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIqke-0004Kz-8b for guix-devel@gnu.org; Sat, 03 Nov 2018 03:53:50 -0400 Received: from mail-yw1-xc2e.google.com ([2607:f8b0:4864:20::c2e]:35325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIqkd-0004JA-Ol for guix-devel@gnu.org; Sat, 03 Nov 2018 03:53:48 -0400 Received: by mail-yw1-xc2e.google.com with SMTP id w135-v6so1713684ywd.2 for ; Sat, 03 Nov 2018 00:53:47 -0700 (PDT) In-Reply-To: <8745311c-0b40-a590-41dc-3c2b84d24faf@riseup.net> 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" To: swedebugia Cc: guix-devel --0000000000009da57a0579bdf391 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Il giorno ven 2 nov 2018 alle ore 00:20 swedebugia ha scritto: > Hi Amirouche > > On 2018-11-01 14:37, Amirouche Boubekki wrote: > > > Implementation: > > It could be implemented by adding the fields to package-objects. > > nitpick, those are records in guile scheme. > > Did you mean to correct my use of "object" here? > Your are right about that. > > Scheme Syntax: *define-record-type* > > > > *type (constructor fieldname =E2=80=A6) predicate (fieldname accessor [mo= difier]) > =E2=80=A6 * > I finally begin to understand all these words an Scheme-ways of doing > things. > > Have I understood correctly that we have at least 1 nested record types i= n > guix? E.g. the package record contains an origin record and a lot of othe= r > fields. > yes, that's correct --0000000000009da57a0579bdf391 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Il giorno ven 2 nov 2018 alle ore 00:20 swedebugia <swedebugia@riseup.net> ha scri= tto:
=20 =20 =20

Hi Amirouche


On 2018-11-01 14:3= 7, Amirouche Boubekki wrote:

Implementation:

It could be implemented by adding the fields to package-objects.
nitpick, those are records in guile scheme.
Did you mean to correct my use of "object" here?
Your are right about that.

Scheme Syntax: define-record-type type
(constructor fieldname =E2=80=A6)
predicate
(fieldname accessor [modifier]) =E2=80=A6

I finally begin to understand all these words an Scheme-ways of doing things.

Have I understood correctly that we have at least 1 nested record types in guix? E.g. the package record contains an origin record and a lot of other fields.

yes, t= hat's correct

=C2=A0
--0000000000009da57a0579bdf391--