How to add a local project to asdf configured by quicklisp

后端 未结 4 433
没有蜡笔的小新
没有蜡笔的小新 2020-12-25 08:48

I want to add a local project to the known projects by asdf, but due to the fact that asdf was installed and configured by quicklisp and the *central-registry*

4条回答
  •  旧巷少年郎
    2020-12-25 09:43

    If you use Quicklisp you can use the dedicated directory ~/quicklisp/local-projects/ which is scanned before the others directories. To use it, just put your project or a symbolic link.

    (quickproject:make-project "~/quicklisp/local-projects/my-new-website/"
      :depends-on '(restas parenscrit cl-who))
    
    (quickproject:make-project "~/src/lisp/my-cool-gui/"
      :depends-on '(qt))
    
    $ ln -s ~/src/lisp/my-cool-gui ~/quicklisp/local-projects/my-cool-gui  
    

    However, if you really want to configure ASDF do as explained in the documentation .

    For example you can put this:

    (:directory "~/src/lisp/my-project-XYZ/")
    

    in your ~/.config/common-lisp/source-registry.conf.d/my-asdf.conf to add a directory, or

    (:tree "~/src/lisp/")
    

    if you want all the subdirectories to be scanned.

提交回复
热议问题