Email or username:

Password:

Forgot your password?
Grigory Shepelev

#guix + #commonlisp users: what config (.sbclrc.lisp?) are you using to get it all working on guix properly?
so that cl knows where to search for packages and asdf - for systems

4 comments
Carlo Zancanaro

@shegeley I set everything up using Guix, and it all just ends up in the right place.

I start SLIME with inferior-lisp-program set to "guix shell --development --file=guix.scm -- sbcl", then I use ASDF:LOAD-ASD to load my project's .asd file, and ASDF:LOAD-SYSTEM to load the system.

I generally only use things which are packaged in Guix, though, so this might not work as well if you're wanting to use Quicklisp/Ultralisp/whatever.

Grigory Shepelev

@carlozancanaro @met I'm using Andrew's #rde (@abcdw) feature-lisp

(git.sr.ht/~abcdw/rde/tree/mast)

and this setup won't detect sbcl libraries (packages) installed via just `guix install`.

I had to add:
(push #p "~/.guix-home/profile/share/common-lisp/sbcl/" asdf:*central-registry*)
(push #p "~/.guix-profile/profile/share/common-lisp/sbcl/" asdf:*central-registry*)
to .sbclrc.lisp

and only after explicit userinit flag ( sbcl --userinit ~/.sbclrc.lisp)

it found the libs installed

@carlozancanaro @met I'm using Andrew's #rde (@abcdw) feature-lisp

(git.sr.ht/~abcdw/rde/tree/mast)

and this setup won't detect sbcl libraries (packages) installed via just `guix install`.

I had to add:
(push #p "~/.guix-home/profile/share/common-lisp/sbcl/" asdf:*central-registry*)
(push #p "~/.guix-profile/profile/share/common-lisp/sbcl/" asdf:*central-registry*)
to .sbclrc.lisp

met

@shegeley I just use (asdf:load-system :package-name) and it just works if the package is installed from Guix. Afaik I don't have any special config apart from the path etc. environment variables described in the manual.

For personal projects I add the project directory to the ASDF search path before running the load-system function and it just works as well.

Not sure if this plays well with e.g. Quicklisp though.

mzan

@shegeley hi, I created today a writefreely instance, and I wrote a blog post about my experience about developing #commonlisp in #guix : blog.dokmelody.org/mzan/how-to

Go Up