Skip to content

Commit

Permalink
makefile: Delete CFFI logic.
Browse files Browse the repository at this point in the history
See c2493e7.
  • Loading branch information
aadcg committed Mar 12, 2024
1 parent 1471a40 commit 0ab550c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@ help:

makefile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

# The CFFI-specific snippet is useful when running in a Guix shell to register its libraries in CFFI.
# TODO: Find a better way to do it.
lisp_eval:=$(LISP) $(LISP_FLAGS) \
--eval '(require "asdf")' \
--eval '(when (string= "$(NYXT_SUBMODULES)" "true") (setf asdf:*default-source-registries* (list (quote asdf/source-registry:environment-source-registry))) (asdf:clear-configuration) (asdf:load-asd "$(makefile_dir)/libraries/nasdf/nasdf.asd") (asdf:load-asd "$(makefile_dir)/nyxt.asd") (asdf:load-system :nyxt/submodules))' \
--eval '(asdf:load-asd "$(makefile_dir)/libraries/nasdf/nasdf.asd")' \
--eval '(asdf:load-asd "$(makefile_dir)/nyxt.asd")' \
--eval '(when (and (find-package :cffi) (uiop:getenv "GUIX_ENVIRONMENT")) (pushnew (pathname (format nil "~a/lib/" (uiop:getenv "GUIX_ENVIRONMENT"))) (symbol-value (read-from-string "cffi:*foreign-library-directories*" )) :test (quote equal)))' \
--eval
lisp_quit:=--eval '(uiop:quit)'

Expand Down

0 comments on commit 0ab550c

Please sign in to comment.