unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* whishlist: guix build -d /gnu/store/hash-pkg-version?
@ 2020-05-06 23:45 zimoun
  2020-05-08 13:33 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2020-05-06 23:45 UTC (permalink / raw)
  To: help-guix

Dear,

When debugging, I find really useful the command: "guix build -d package".

Is it possible to do the same on the resulting '/gnu/store/<path>'?

For example,

$ guix build hello
/gnu/store/kg9mirg6xbvzcp0a98v7326n1nvvwgsj-hello-2.10

$ guix build -d hello
/gnu/store/gknm68l0q893bpvyhcd4ccih1bmh0j87-hello-2.10.drv

Well, I would like to do something like that?

$ guix build -d /gnu/store/kg9mirg6xbvzcp0a98v7326n1nvvwgsj-hello-2.10
/gnu/store/gknm68l0q893bpvyhcd4ccih1bmh0j87-hello-2.10.drv

Does it make sense?


Currently, I am using a combination of "guix gc --list-dead |grep" or
"guix gc --list-live|grep".   But it is not really handy; especially
when there is several times the same package-version (with grafts).

Thank you in advance for any advice.

Best regards,
simon


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: whishlist: guix build -d /gnu/store/hash-pkg-version?
  2020-05-06 23:45 whishlist: guix build -d /gnu/store/hash-pkg-version? zimoun
@ 2020-05-08 13:33 ` Marius Bakke
  2020-05-10 13:59   ` zimoun
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-05-08 13:33 UTC (permalink / raw)
  To: zimoun, help-guix

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

zimoun <zimon.toutoune@gmail.com> writes:

> Dear,
>
> When debugging, I find really useful the command: "guix build -d package".
>
> Is it possible to do the same on the resulting '/gnu/store/<path>'?
>
> For example,
>
> $ guix build hello
> /gnu/store/kg9mirg6xbvzcp0a98v7326n1nvvwgsj-hello-2.10
>
> $ guix build -d hello
> /gnu/store/gknm68l0q893bpvyhcd4ccih1bmh0j87-hello-2.10.drv
>
> Well, I would like to do something like that?
>
> $ guix build -d /gnu/store/kg9mirg6xbvzcp0a98v7326n1nvvwgsj-hello-2.10
> /gnu/store/gknm68l0q893bpvyhcd4ccih1bmh0j87-hello-2.10.drv
>
> Does it make sense?

That does make sense and is already supported with 'guix gc --derivers':

$ guix gc --derivers /gnu/store/a462kby1q51ndvxdv3b6p0rsixxrgx1h-hello-2.10
/gnu/store/8s63hyw4f2ivf1zxkx65awlx5jackvbz-hello-2.10.drv

:-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: whishlist: guix build -d /gnu/store/hash-pkg-version?
  2020-05-08 13:33 ` Marius Bakke
@ 2020-05-10 13:59   ` zimoun
  0 siblings, 0 replies; 3+ messages in thread
From: zimoun @ 2020-05-10 13:59 UTC (permalink / raw)
  To: Marius Bakke; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 527 bytes --]

Hi Marius,

On Fri, 8 May 2020 at 15:33, Marius Bakke <mbakke@fastmail.com> wrote:

> That does make sense and is already supported with 'guix gc --derivers':

Thank you!  Exactly that.

Well,  'derivers' is not common -- from my poor English knowledge and
in the Guix vocabulary -- so please fin attached  a tiny patch that
mentions .drv in "guix gc --help" and 'delivers, derivation' to the
index.  I do not know if it makes sense but if I was too lazy to find
it, I bet that I am not the only one. ;-)


All the bets,
simon

[-- Attachment #2: 0001-doc-Add-cindex-entry-for-delivers-option.patch --]
[-- Type: text/x-patch, Size: 1282 bytes --]

From 828290446c4ebc3eee47f2cf99f747b2afc401b3 Mon Sep 17 00:00:00 2001
From: zimoun <zimon.toutoune@gmail.com>
Date: Sun, 10 May 2020 15:48:48 +0200
Subject: [PATCH] doc: Add @cindex entry for delivers option.

* doc/guix.texi: (Invoking guix gc): Add @cindex `delivers'.
* guix/scripts/gc.scm: Mention derivation for 'delivers'.
---
 doc/guix.texi       | 1 +
 guix/scripts/gc.scm | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 2505ecdb86..755938cd4b 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -3643,6 +3643,7 @@ the graph of references.
 
 @item --derivers
 @cindex derivation
+@cindex derivers, derivation
 Return the derivation(s) leading to the given store items
 (@pxref{Derivations}).
 
diff --git a/guix/scripts/gc.scm b/guix/scripts/gc.scm
index ab7c13315f..ed9ea4d2c9 100644
--- a/guix/scripts/gc.scm
+++ b/guix/scripts/gc.scm
@@ -74,7 +74,7 @@ Invoke the garbage collector.\n"))
   (display (G_ "
       --referrers        list the referrers of PATHS"))
   (display (G_ "
-      --derivers         list the derivers of PATHS"))
+      --derivers         list the derivers (.drv) of PATHS"))
   (newline)
   (display (G_ "
       --verify[=OPTS]    verify the integrity of the store; OPTS is a
-- 
2.26.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-10 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 23:45 whishlist: guix build -d /gnu/store/hash-pkg-version? zimoun
2020-05-08 13:33 ` Marius Bakke
2020-05-10 13:59   ` zimoun

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