guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Feature idea] Adding wikidata, wikipedia & screenshot-url fields to


From: swedebugia
Subject: Re: [Feature idea] Adding wikidata, wikipedia & screenshot-url fields to package-recipes
Date: Fri, 2 Nov 2018 00:25:16 +0100

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 …)
predicate
(fieldname accessor [modifier]) …

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.
 
The rationale for adding screenshot-url to the recipe is that this parsing of wikidata->en-WP->url-for-first-image
for every package in our list is quite expensive. Better to do it once and perhaps update all the screenshot-urls
once a year or so.
I think the screenshot-url field will not be very helpful that can be
fetched based on wikidata identifier.
Ok, I understand your point.

/Swedebugia

reply via email to

[Prev in Thread] Current Thread [Next in Thread]