unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Configuring geiser for load paths of Guix environment
@ 2022-08-01 16:24 Olivier Dion via
  2022-08-01 23:25 ` Csepp
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Dion via @ 2022-08-01 16:24 UTC (permalink / raw)
  To: help-guix

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-02 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-01 16:24 Configuring geiser for load paths of Guix environment Olivier Dion via
2022-08-01 23:25 ` Csepp
2022-08-02 16:46   ` Olivier Dion via

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