I can not currently find a way to set the CFFI variables correctly to get it to load libraries from Nix. In the absence of that feature, a wrapper also does the trick.
		
			
				
	
	
		
			7 lines
		
	
	
	
		
			135 B
		
	
	
	
		
			Common Lisp
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			135 B
		
	
	
	
		
			Common Lisp
		
	
	
	
	
	
(defpackage example
 | 
						|
  (:use :cl :lib-example)
 | 
						|
  (:export :main))
 | 
						|
(in-package :example)
 | 
						|
 | 
						|
(defun main ()
 | 
						|
  (format t "i <3 ~A~%" (who)))
 |