From: Konrad Hinsen <konrad.hinsen@fastmail.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Finding the store path of a package
Date: Mon, 22 Mar 2021 18:58:18 +0100 [thread overview]
Message-ID: <m1czvrkr45.fsf@ordinateur-de-catherine--konrad.home> (raw)
In-Reply-To: <8735wnxiok.fsf@gnu.org>
Hi Ludo,
> Here’s an example of how to do that:
Works fine, thanks!
> Why #:graft? #f? Because if you enable graft, you’ll potentially have
> to build/download the thing, and that wouldn’t buy you anything because
> the set of file names is the same in the grafted package.
OK, so that's the secret, because that's the only difference with what
I tried before.
One day I'll figure out how grafts work, but that day is not today ;-)
> For #2, there have been discussions about building a service that would
> create such a database—a mapping from file names to packages. It’s not
> possible to do with purely local knowledge because, by definition, you’d
> have to build/download every package. I don’t think it has materialized
> yet, though.
That would certainly be the best solution, but in the meantime, I'll go
ahead with what is possible today. In practice, I expect most such
queries to succeed because there are only a few packages that contain
popular commands, and those are usually in the store.
Cheers,
Konrad.
next prev parent reply other threads:[~2021-03-22 17:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 17:55 Finding the store path of a package Konrad Hinsen
2021-03-17 18:27 ` zimoun
2021-03-18 8:43 ` Konrad Hinsen
2021-03-18 10:45 ` Konrad Hinsen
2021-03-18 12:04 ` zimoun
2021-03-20 13:46 ` Ludovic Courtès
2021-03-22 7:39 ` Konrad Hinsen
2021-03-22 10:03 ` zimoun
2021-03-22 13:12 ` Konrad Hinsen
2021-03-22 16:22 ` Ludovic Courtès
2021-03-22 17:58 ` Konrad Hinsen [this message]
2021-04-19 7:08 ` Konrad Hinsen
-- strict thread matches above, loose matches on Subject: below --
2024-04-22 23:58 Nikolaos Chatzikonstantinou
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=m1czvrkr45.fsf@ordinateur-de-catherine--konrad.home \
--to=konrad.hinsen@fastmail.net \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/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).