[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I want to pin exact versions of software in guix shell. Do I need ch
From: |
Carlo Ascani |
Subject: |
Re: I want to pin exact versions of software in guix shell. Do I need channels information? |
Date: |
Mon, 10 Feb 2025 06:34:04 +0000 |
On Sunday, February 9th, 2025 at 6:49 PM, Ian Eure <ian@retrospec.tv> wrote:
> The quoted part of the manual answers your question. The reason
> why this is so is that the version of a package available may
> change between channel revisions, so if you pin foobar@1.2.3, then
> `guix pull', the HEAD of the channel defining the foo package may
> have updated it to 1.2.4, and then your profile breaks because it
> references a package which doesn’t exist.
So, I ran `guix describe -f channels` and store it output in the
manifest.
It ended up looking like this:
----8<----8<----8<----
(use-modules (guix channels))
(list (channel
(name 'guix)
(url "https://git.savannah.gnu.org/git/guix.git")
(branch "master")
(commit
"7f3313341caf844d9fb6919f6cdc28fdcaf06c6d")
(introduction
(make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad"
(openpgp-fingerprint
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))))
(specifications->manifest '("make@4.4.1" "elm@0.19.1"))
----8<----8<----8<----
This way I am sure that my collegues that run `guix shell`
will get the same exact make and elm.
Am I correct?
Cheers!
Carlo