[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Loading Common Lisp Libraries with GNU/Guix in a REPL
From: |
jgart |
Subject: |
Loading Common Lisp Libraries with GNU/Guix in a REPL |
Date: |
Fri, 10 Dec 2021 05:44:58 -0500 |
Hi Guixers/Lispers,
What is the recommended way to load common lisp libraries that I install
with GNU/Guix on a foreign distro from a repl?
What are the common practices/workflows that the Guix community currently
uses with emacs-slime or sly to load common lisp libraries?
Is there a way of loading my dependencies with Guix the way they can be loaded
automatically via quicklisp?
I've tried this so far:
```
$ guix shell sbcl sbcl-dexador rlwrap
$ rlwrap sbcl
CL-USER(1): (asdf:load-system :dexador)
WARNING: System definition file
#P"/gnu/store/zwkhqlyijf8bwpm3a70f7ly978w2knqw-sbcl-flexi-streams-1.0.19/share/common-lisp/sbcl/flexi-streams/flexi-streams.asd"
contains definition for system "flexi-streams-test". Please
only define "flexi-streams" and secondary
systems with a name starting with "flexi-streams/"
(e.g. "flexi-streams/test") in that file. WARNING: System definition file
#P"/gnu/store/98czgrz2fqq2mjzj80i19yly0n6lw2bs-sbcl-trivial-garbage-0.21/share/common-lisp/sbcl/trivial-garbage/trivial-garbage.asd"
contains definition for system "trivial-garbage-tests". Please only
define "trivial-garbage" and secondary systems with a name starting with
"trivial-garbage/" (e.g. "trivial-garbage/test") in that file.
T
CL-USER(2): (dex:get "http://genenetwork.org/api/v_pre1/species")
"[{\"FullName\":\"Mus
musculus\",\"Id\":1,\"Name\":\"mouse\",\"TaxonomyId\":10090},{\"FullName\":\"Rattus
norvegicus\",\"Id\":2,\"Name\":\"rat\",\"TaxonomyId\":10116},{\"FullName\":\"Arabidopsis
thaliana\",\"Id\":3,\"Name\":\"arabidopsis\",\"TaxonomyId\":3702},{\"FullName\":\"Homo
sapiens\",\"Id\":4,\"Name\":\"human\",\"TaxonomyId\":9606},{\"FullName\":\"Hordeum
vulgare\",\"Id\":5,\"Name\":\"barley\",\"TaxonomyId\":4513},{\"FullName\":\"Drosophila
melanogaster\",\"Id\":6,\"Name\":\"drosophila\",\"TaxonomyId\":7227},{\"FullName\":\"Macaca
mulatta\",\"Id\":7,\"Name\":\"macaque
monkey\",\"TaxonomyId\":9544},{\"FullName\":\"Glycine
max\",\"Id\":8,\"Name\":\"soybean\",\"TaxonomyId\":3847},{\"FullName\":\"Solanum
lycopersicum\",\"Id\":9,\"Name\":\"tomato\",\"TaxonomyId\":4081},{\"FullName\":\"Populus
trichocarpa\",\"Id\":10,\"Name\":\"poplar\",\"TaxonomyId\":3689},{\"FullName\":\"Oryzias
latipes (Japanese medaka)\",\"Id\":11,\"Name\":\"Oryzias
latipes\",\"TaxonomyId\":8090}]
"
200
#<HASH-TABLE :TEST EQUAL :COUNT 6 {1006CDF443}>
#<QURI.URI.HTTP:URI-HTTP http://genenetwork.org/api/v_pre1/species>
#<SB-SYS:FD-STREAM for "socket 192.168.1.198:55100, peer: 128.169.5.59:80"
{100697A9A3}>
```
`(asdf:load-system :dexador)` feels a bit verbose for loading a library
at a REPL.
Any help on best practices for common lisp workflows using GNU/Guix is
much appreciated.
all best,
jgart
- Loading Common Lisp Libraries with GNU/Guix in a REPL,
jgart <=