From: zimoun <zimon.toutoune@gmail.com>
To: Guix Devel <guix-devel@gnu.org>, Christopher Baines <mail@cbaines.net>
Subject: Data service package history link
Date: Tue, 01 Dec 2020 17:10:37 +0100 [thread overview]
Message-ID: <867dq1v75u.fsf@gmail.com> (raw)
Hi,
I have read on logs.guix.gnu.org [1]:
<civodul>maybe https://data.guix.gnu.org/repository/1/branch/master/package/ghc-yaml/output-history
<rekado>hmm, I haven’t been able to find this URL by clicking around; thanks
And I remember asking 3 or 4 times to Chris at the last IRL Guix Days
the URL. Chris, maybe instead of “Include outputs”, it could be “Output history”.
Well, I have this Emacs helper function:
--8<---------------cut here---------------start------------->8---
(defun my/guix-data (package)
"Add URL of PACKAGE to `kill-ring'.
Yankable result:
`https://data.guix.gnu.org/repository/1/branch/master/package/PACKAGE/output-history'.
With `universal-argument', load URL using `browse-url'."
(interactive "sPackage: ")
(let ((url
(format
"https://data.guix.gnu.org/repository/1/branch/master/package/%s/output-history" package)))
(kill-new url)
(when current-prefix-arg
(browse-url url))
(message (format "%s killed." url))))
--8<---------------cut here---------------end--------------->8---
It is quick and dirt but works for me. I am sure some Emacs wizard can
improve this kind of helper and maybe this could be included in
Emacs-Guix.
All the best,
simon
1: <http://logs.guix.gnu.org/guix/2020-12-01.log#114645>
reply other threads:[~2020-12-01 16:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=867dq1v75u.fsf@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).