all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Tom Willemse <tom@ryuslash.org>
Cc: help-guix@gnu.org
Subject: Re: SCSH libraries search path
Date: Sun, 6 Nov 2022 12:13:14 +0200	[thread overview]
Message-ID: <Y2eIusG9AfWInTja@3900XT> (raw)
In-Reply-To: <871qqoxxyd.fsf@ryuslash.org>

[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]

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")))))


> This successfully adds something along the lines of the following to my
> profile when I package my library:
> 
>     export SCSH_LIB_DIRS="${GUIX_PROFILE:-/gnu/store/ib05wwxl1p1b5avihw7fhvphxjhq3y97-profile}/share/scsh/site${SCSH_LIB_DIRS:+:}$SCSH_LIB_DIRS"
> 
> The only problem here is that the SCSH_LIB_DIRS needs to be a space-separated
> list of strings instead of the usualy colon-separated list of strings.
> With the value `#f' denoting where to put the compiled default lib dir.
> 
> For example in my manual (pre-Guix Home) configuration I have this:
> 
>     export SCSH_LIB_DIRS="#f \"${HOME}/usr/share/scsh/\""
> 
> To add `~/usr/share/scsh' to the places where SCSH looks for libraries
> (or packages as I guess scheme48 and scsh call them?).
> 
> Unfortunately I can't remember how I found out about `SCSH_LIB_DIRS' and
> I can't find any reference to it in the manual at the moment.
> 
> I looked at the `<search-path-specification>', `evaluate-search-paths',
> and `environment-variable-definition' source, but I think there need to
> be some changes made in `search-paths.scm' for this to be supported? I
> can't do it in my own configuration? If there is a way to do this
> already I would really appreciate a hint as how to do it, otherwise I'll
> have to see if I can add this support there, if nobody objects. I will
> probably need some help with this in that case.
> 
> In case it helps, here is my little script and the library it uses:
> https://code.ryuslash.org/util/tom/mpd-random-albums/tree/ apologies for
> the messy UI, I'm still working on updating my CGit stylesheets and as
> you can probably also tell I'm not a designer.
> 
> Hopefully this all makes sense :)
> 
> Thanks for your time!
> 
> 
> Cheers,
> 
> Tom
> 

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-11-06 10:13 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 [this message]
2022-11-14  0:49   ` Tom Willemse
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y2eIusG9AfWInTja@3900XT \
    --to=efraim@flashner.co.il \
    --cc=help-guix@gnu.org \
    --cc=tom@ryuslash.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.