[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commit of currently installed package?

From: zimoun
Subject: Re: Commit of currently installed package?
Date: Tue, 4 Jan 2022 18:42:38 +0100


On Tue, 4 Jan 2022 at 17:02, <> wrote:

> At one point I installed emacs-next --with-branch=master. Well,


> --export-manifest is approximate and doesn't even give package
>   versions. Even if I start playing games with --export-channels
>   or Scheme %current-profile => manifest => lookup in inferior
>   that would still find whatever guix repo commit had for
>   emacs-next, not what I actually have installed.

No, you cannot know.  Well, that information is not stored by Guix,
AFAIK.  Indeed, it could nice, instead of the current "guix package

--8<---------------cut here---------------start------------->8---
(use-modules (guix transformations))

(define transform1
    '((with-branch . "emacs-next=master"))))

  (list (transform1
          (specification->package "emacs-next"))))
--8<---------------cut here---------------end--------------->8---

To replace 'master' by the commit used.

As a workaround, if it is recent enough (not removed by
last-expiry-cleanup ;-)), the temporary Emacs checkout could be still
there. :-)  Give a look at ~/.cache/guix/checkouts/ and probably

Hope that helps,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]