unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Guix Devel <guix-devel@gnu.org>, Christopher Baines <mail@cbaines.net>
Subject: Data service: package information
Date: Wed, 6 May 2020 16:19:35 +0200	[thread overview]
Message-ID: <CAJ3okZ2ZNXWB64a2McWRnQoER6SEvCJ0Zsg+5Ye6rbVa4+zCyw@mail.gmail.com> (raw)

Dear Chris,

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>

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. ;-)

A concrete example: recently I have tried to install Docker, which was
broken on master, so it is a couple of clicks to find the last commit
which builds.  Using this proposal, it becomes faster: "guix search
docker", click, "guix time-machine --commit=<xx> -- install docker -p
/tmp/docker".  It smooths the frustration. :-)


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


Thank you in advance for any comment and/or pointer.

All the best,
simon


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


             reply	other threads:[~2020-05-06 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-06 14:19 zimoun [this message]
2020-05-06 17:36 ` Data service: package information Christopher Baines
2020-05-06 17:56   ` zimoun
2020-05-06 18:48     ` Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ3okZ2ZNXWB64a2McWRnQoER6SEvCJ0Zsg+5Ye6rbVa4+zCyw@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mail@cbaines.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).