A simple note about how GNU Guix and SBCL CFFI can work together to easily write a wrapper around the shared library.
guix shell sbcl sbcl-cffi sbcl-slime-swank sqlite
Then you need to invoke from shell with preceding LD_LIBRARY_PATH=…:
LD_LIBRARY_PATH="$GUIX_ENVIRONMENT/lib" sbcl --eval '(require :asdf)' --eval '(asdf:load-system :swank)' --eval '(swank:create-server :dont-close t)' --eval '(asdf:load-system :cffi)'