all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Olivier Dion via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: Configuring geiser for load paths of Guix environment
Date: Mon, 01 Aug 2022 12:24:24 -0400	[thread overview]
Message-ID: <87mtco0w5j.fsf@laura> (raw)

Hi,

Say I have a .guix.scm in my project with something like
(specifications->manifest (list "guile" "guile-fibers" "guile-gcrypt"))

If I want to develop with Geiser, it needs to find these modules in its
load paths.  My solution to this problem is the following .geiser at the
project root:

--8<---------------cut here---------------start------------->8---
;; -*-Scheme-*-
(let* ((port ((@@ (ice-9 popen) open-input-pipe)
              "guix shell -m .guix.scm -- /bin/sh -c 'echo $GUIX_ENVIRONMENT'"))
       (profile ((@@ (ice-9 rdelim) read-line) port)))
  (add-to-load-path (string-append profile "/share/guile/site/3.0"))
  (set! %load-compiled-path
        (cons (string-append profile "/lib/guile/3.0/site-ccache")
              %load-compiled-path)))
--8<---------------cut here---------------end--------------->8---

I'm wondering if someone has a better solution to this?

-- 
Olivier Dion
oldiob.dev



             reply	other threads:[~2022-08-01 16:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01 16:24 Olivier Dion via [this message]
2022-08-01 23:25 ` Configuring geiser for load paths of Guix environment Csepp
2022-08-02 16:46   ` Olivier Dion via

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=87mtco0w5j.fsf@laura \
    --to=help-guix@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    /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.