guix-devel
[Top][All Lists]
Advanced

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

Re: Data service: package information


From: Christopher Baines
Subject: Re: Data service: package information
Date: Wed, 06 May 2020 18:36:37 +0100
User-agent: mu4e 1.2.0; emacs 26.3

zimoun <address@hidden> writes:

> I am playing with "guix search / show" ('package->recutils) and I
> would like to provide 2 informations:
>
>  1) the hyperlink to the Data Service.
>  2) if the package is substituable.
>
> The 1) is not complicated since Guix checks if hyperlinks are
> supported by the terminal.  The question is: does the API is
> "reliable"?
>
> https://data.guix.gnu.org/repository/1/branch/master/package/<package-name>

The URLs can be kept working for a while if that's what you mean.

> Aside, does it make sense to add the revision number (short commit
> hash, e.g., abc123) and the red (X) or the green (V) close to "More
> information" to easily check the status of the derivation.  It avoids
> one click when it is green. ;-)

I'm not sure what page this relates to?

> The 2) is a bit more complicated.  First does it make sense?  Because
> the computation of a derivation is probably required, isn't it?  Well,
> it is related to [1], isn't?
>
> Is it possible to fetch such "binary availability" from the Data
> Service?  If yes, how?
>
> [1] https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00337.html

So this is something that I'd suggest doing without the Guix Data
Service. There's has-substitutes? in (guix store) to fetch the
substitute availability for a store path, and that will use the
substitute servers the user has configured, which could be completely
different to the ones the Guix Data Service knows about, so doing this
just from the users machine is more representative.

> Note that from the webpage [2], the link bottom redirect with http://
> without the 's'.  I do not know if it matters.
>
> [2] http://hpc.guix.info/package/git

I didn't think there was much value in forcing HTTPS for
data.guix.gnu.org, so it works with or without TLS currently.

Anyway, this all sounds exciting Simon. Let me know how you get on :)

Chris

Attachment: signature.asc
Description: PGP signature


reply via email to

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