Re: Question about scripts in guix-home

2021-10-17 Thread Fredrik Salomonsson
Oleg Pykhalov writes: > Well, if you don't want to put the content of > files/waybar/modules-mic.sh file inside a Scheme string, then you need > to read the file to a string, e.g.: > --8<---cut here---start->8--- > (simple-service 'shellcheck-wrapper >

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: Loading Channels from a file

2021-10-17 Thread Phil Beadling
To answer my own question somewhat see below - although I need to think a bit more my my original approach wasn't good enough - the problem I think it my own understanding of Guile! On Sat, 16 Oct 2021 at 22:24, Phil Beadling wrote: > Hi, > > (define my-channels2 (call-with-input-file (option-re

Re: Question about scripts in guix-home

2021-10-17 Thread Oleg Pykhalov
Fredrik Salomonsson writes: […] > This is what I tried. Note that I only tested this on my mic.sh script > to see if it worked. > > #+begin_src scheme > (define-public (get-services host) > "Return services for HOST." > (let ((storage-script (program-file >"

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