unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
To: help-guix@gnu.org
Subject: Find installed library version of GNU Guix commit x
Date: Wed, 6 Jan 2021 20:51:44 +0100	[thread overview]
Message-ID: <b4ab9805-116d-28dc-f69f-30cd4d63f7a8@posteo.de> (raw)

Hello Guix users!

I would like to know a command line way of finding the version of a
library, which I install, when I am using time-machine as follows:

~~~~
guix time-machine \
     --channels="${DIR}/channels.scm" -- \
     environment \
     --manifest="${DIR}/manifest.scm"
~~~~

Where DIR is of course some directory in which a channels.scm and
manifest.scm file are.

I initially tried:

~~~~
guix time-machine --channels=/home/xiaolong/dev/guile/fantasy-vacation-planner/guix-env/channels.scm -- package -I
~~~~

But that does not give the expected output and lists versions of things
not specified in the manifest file, as well as not showing the versions
of the things specified in the manifest file. It apparently relates to
the base profile.

Then I looked at the websites:

http://data.guix.gnu.org/repository/1/branch/master/package/guile-json

OK here I see the library I am specifying in my manifest file. But how
to know, between which 2 commits the revision (or commit id) is, which
is specified in my channels file? Then I tried changing the URL:

http://data.guix.gnu.org/repository/1/commit/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee/package/guile-json

Nope, this does not exist. But hey, I can click on one of the displayed
links to a revision and then change that URL!

http://data.guix.gnu.org/revision/f9e1baa8933ea2ed385d0272dbfbe4e22f192bde

Becomes:

http://data.guix.gnu.org/revision/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee

And there I found a link "View package derivations":

http://data.guix.gnu.org/revision/8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee/package-derivations

Perhaps those "Package derivations" are what I am looking for. So I
search for guile-json in the first input field "Search query".
Unfortunately now several versions come up and now I am stuck. Which
version am I installing?

Here are contents of my manifest and channels files:

~~~~
(specifications->manifest
 '("guile"
   "guile-json"))
~~~~

(no versions specified, as those are probably redundant, because the
channel is specified with a precise commit)

~~~~
(list (channel
        (name 'guix)
        (url "https://git.savannah.gnu.org/git/guix.git")
        (commit
          "8518a3692cbb9cd96d69c03e9de9ad6fdcfebbee")
        (introduction
          (make-channel-introduction
            "9edb3f66fd807b096b48283debdcddccfea34bad"
            (openpgp-fingerprint
              "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
~~~~

So I already learned today:

1. Revisions seem to be the same thing as commit ids in the version
control system. Just a different name for the same thing.

2. Apparently package derivations are "the versions following from a git
commit of Guix", but there can be more shown, than I expected.

Can you help me Guix noob out?^^

Thank you!
Zelphir

-- 
repositories: https://notabug.org/ZelphirKaltstahl


             reply	other threads:[~2021-01-06 19:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 19:51 Zelphir Kaltstahl [this message]
2021-01-07 12:30 ` Find installed library version of GNU Guix commit x zimoun
2021-01-07 19:03   ` Zelphir Kaltstahl
2021-01-10 23:52     ` Zelphir Kaltstahl
2021-01-11 16:04     ` zimoun
2021-01-11 19:10       ` Zelphir Kaltstahl

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=b4ab9805-116d-28dc-f69f-30cd4d63f7a8@posteo.de \
    --to=zelphirkaltstahl@posteo.de \
    --cc=help-guix@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.
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).