From: Tom Willemse <tom@ryuslash.org>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: help-guix@gnu.org
Subject: Re: SCSH libraries search path
Date: Sun, 13 Nov 2022 16:49:05 -0800 [thread overview]
Message-ID: <87k03ymkce.fsf@ryuslash.org> (raw)
In-Reply-To: <Y2eIusG9AfWInTja@3900XT>
Hey Efraim,
Efraim Flashner <efraim@flashner.co.il> writes:
> On Mon, Oct 31, 2022 at 12:18:50AM -0700, Tom Willemse wrote:
>> Hey Guix \o/
>>
>> I've been wanting to package one of my little scripts in Guix Home and
>> it uses a little library I wrote for SCSH. I've been looking at how
>> Search Paths work and I'm having trouble figuring out how to make this
>> work.
>>
>> Search paths seem easy enough generally, I was able to add a simple
>> addition to my configuration by just adding this to the scsh package
>> definition:
>>
>> (native-search-paths
>> (list (search-path-specification
>> (variable "SCSH_LIB_DIRS")
>> (files '("share/scsh/site")))))
>
> Try adding the 'separator' field, so it would look like this:
>
> (native-search-paths
> (list (search-path-specification
> (variable "SCSH_LIB_DIRS")
> (separator " ")
> (files '("share/scsh/site")))))
Thanks for the suggestion! Unfortunately this gets me a value of
`SCSH_LIB_DIRS' like
/home/chelys/.guix-home/profile/share/scsh-0.7
which, when I try the command `scsh -ll mpd.scm -o mpd' causes the
following error to appear:
error: Illegal path element in $SCSH_LIB_DIRS
$SCSH_LIB_DIRS: /home/chelys/.guix-home/profile/share/scsh-0.7
The following element is not a string or #f: /home/chelys/.guix-home/profile/share/scsh-0.7
It's because SCSH treats the contents of `SCSH_LIB_DIRS' as "a sequence
of of s-expressions, which are `read' from the string"[1] and supports
either string values or the value #f. So `SCSH_LIB_DIRS' would have to
be in this case:
"/home/chelys/.guix-home/profile/share/scsh-0.7"
I guess this just isn't supported as yet in Guix?
Cheers,
Tom
next prev parent reply other threads:[~2022-11-14 1:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 7:18 SCSH libraries search path Tom Willemse
2022-11-06 10:13 ` Efraim Flashner
2022-11-14 0:49 ` Tom Willemse [this message]
2022-11-14 12:47 ` Efraim Flashner
2022-11-24 6:39 ` Tom Willemse
2023-02-16 15:42 ` Efraim Flashner
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=87k03ymkce.fsf@ryuslash.org \
--to=tom@ryuslash.org \
--cc=efraim@flashner.co.il \
--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).