Integration with `akku`
I am trying to use the
akku package manager (here is the project) to manage project dependencies. It works from the shell, but not within Emacs + Geiser.
Akku works by downloading packages like SRFIs to a
.akku directory in the project root, and then providing a shell script called
activate where environment variables are set to allow Chez Scheme (and other Schemes) to find the project dependencies. In the case of Chez, this is
CHEZSCHEMELIBDIRS, but also
GUILE_LOAD_PATH is set at the same time.
source this bash script from within Emacs before starting a Geiser REPL? Or affect how the binary is started? I know it provides a
--libdirs switch just for this case.
A manual method that works for me is to do this, right after starting a REPL:
(library-directories (string-append (current-directory) "/.akku/lib"))
Is there a way to do the same automatically, e.g. on finding an
.akku subdir in the current directory? I am not sure anyway if this is a good solution, since this looks quite particular to Chez.