Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-18 Thread Paul Jewell
Just a small thought: On 16/10/2021 22:03, Phil Beadling wrote: As far as I can see, Guix will always prefer the highest version number irrspective of which channel is sources it from. However, if there is a package with the same name in both my channel and in the official guix channel, 'guix i

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-17 Thread Tim Lee
On 2021-10-17 13:15 +0100, Phil wrote: > I'd highlight that when 2 packages exist with identical verison number, > and one package is specified as local (via -L or GUIX_PACKAGE_PATH), > that local version is preferred over a git-hosted channel. Warnings will also be printed. For example: > guix i

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-17 Thread Tobias Geerinckx-Rice
Phil, Right, I meant to add this but forgot: “In the event of a tie, packages from GUIX_PACKAGE_PATH will take precedence.” Thanks for bringing up ‘-L’. We should explicitly state which of ‘-L’ and GUIX_PACKAGE_PATH wins, if someone's willing to test that. Kind regards, T G-R signat

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-17 Thread Phil
Tobias Geerinckx-Rice writes: > “Any packages they define will be added to the pool of available > packages. Standard package specification rules apply: when > given a package name without an unambiguous version number, Guix > will always pick the highest version of that package regardless

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-17 Thread Tobias Geerinckx-Rice
Tim Lee 写道: Environment Variable: GUIX_PACKAGE_PATH This is a colon-separated list of directories to search for additional package modules. Directories listed in this variable take precedence over the own modules of the distribution. The last sentence makes it sound like GUIX_PACKAGE_PATH w

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-17 Thread Phil
Tim Lee writes: >> Environment Variable: GUIX_PACKAGE_PATH >> >> This is a colon-separated list of directories to search for additional >> package modules. Directories listed in this variable take precedence >> over the own modules of the distribution. > > The last sentence makes it sound like G

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-16 Thread Tim Lee
> As far as I can see, Guix will always prefer the highest version > number irrspective of which channel is sources it from. I guess I misread the documentation or was misled by it. https://guix.gnu.org/manual/en/html_node/Package-Modules.html > Environment Variable: GUIX_PACKAGE_PATH > > This is

Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-16 Thread Phil Beadling
As far as I can see, Guix will always prefer the highest version number irrspective of which channel is sources it from. If you want another version you can use the '@' format as you have already worked out. Another way is to define the package is to keep the 'name' of the original, but the defin

GUIX_PACKAGE_PATH doesn't have priority over official guix packages

2021-10-16 Thread Tim Lee
I have my own channel in a Git repository on my local computer. This is what I do to search and install packages from my own channel: $ cd /path/to/my-channel/ $ GUIX_PACKAGE_PATH=. guix search 'mypackage' $ GUIX_PACKAGE_PATH=. guix install 'mypackage' However, if there is a package with the same