asdf-package-system is an extension to ASDF3 whereby every file is its own system, and starts with a defpackage from which dependencies are deduced.

To use asdf-package-system, see the example from lisp-interface-library: at the top of your hierarchy, say, you'd have a file that contains:

(in-package :asdf)
#-asdf3 (error "LIL requires ASDF 3 or later. Please upgrade your ASDF.")
  :description "Software from"
  :class :package-system
  #.(unless (find-class :package-system nil) '(:asdf-package-system))
  :depends-on (
  :in-order-to ((test-op (load-op
  :perform (test-op (o c) (symbol-call :test-suite)))

(register-system-packages '(:foo-bar))
(register-system-packages :closer-mop
 '(:c2mop :closer-common-lisp :c2cl :closer-common-lisp-user :c2cl-user))

The latter declarations tell asdf-package-system that package foo-bar is to be found in system, and package closer-common-lisp is to be found in system closer-mop.

Then, in bar/all.lisp, you'd have a file that starts with

   (:nicknames :foo-bar)
   (:use :cl :cl-ppcre :uiop)

And ASDF would detect that it depends on the packages that it uses, while uiop:defpackage would import all the symbols from the given packages and reexport them, but use those from cl, cl-ppcre and uiop without reexporting.


asdf-package-system is directly inspired by Alastair Bridgewater's quick-build, itself similar to Peter von Etter's faslpath. It will hopefully be released as part of ASDF 3.0.4 or 3.1 or whatever follows ASDF 3.0.3. Yet, this package will remain for backward compatibility until that feature is universally available.