help-guix
[Top][All Lists]
Advanced

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

Re: Guix home - 'pinning' ?


From: Robby Zambito
Subject: Re: Guix home - 'pinning' ?
Date: Mon, 12 Jun 2023 12:16:15 -0400
User-agent: mu4e 1.10.2; emacs 28.2

Hi,

> when using guix-home, is there a way to pin a given package to its 
> current version, so that it stays as it is despite 'guix pull'    
> bringing new commits ?

In your (home-environment (packages ...)) list, you should specify the
package that has the correct version that you want. There are two ways
to do this. You can either create an inferior channel, and specify the
package by looking it up in that channel, or you can apply a
transformation to the package to specify the version.

Using an inferior package will pull the package from a previous version
of Guix - including all of its package inputs. This will pin all of the
transitive dependencies of the package as well. See: info guix Inferiors
for information on how to define an inferior, and how to select a
package from that inferior.

If you want to pin a package to a specific commit, version, branch, etc
of that package, you can use transformations. See: info guix "Defining
Package Variants" for how to use options->transformation, and info guix
"Package Transformation Options" for the available options you can set.

Hope this helps :)

Robby



reply via email to

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