whishlist: guix build -d /gnu/store/hash-pkg-version?
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/'? 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
Re: whishlist: guix build -d /gnu/store/hash-pkg-version?
zimoun 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/'? > > 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 :-) signature.asc Description: PGP signature
Re: whishlist: guix build -d /gnu/store/hash-pkg-version?
Hi Marius, On Fri, 8 May 2020 at 15:33, Marius Bakke 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 From 828290446c4ebc3eee47f2cf99f747b2afc401b3 Mon Sep 17 00:00:00 2001 From: zimoun 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_ " --referrerslist 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