Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1498
M-x sly then C-c C-l to load forgerie within emacs
Active
Public
Actions
Authored by
ardumont
on Oct 13 2022, 7:51 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
;; dirty hack for "forgerie"
(ql:quickload :cffi)
;; FIXME: Find a way to make libmysqlclient, libcrypto found by nixified quicklisp...
(defun prepare-ldpath ()
(let ((nix-profile-lib-path (merge-pathnames ".nix-profile/lib" (user-homedir-pathname)))
;; libmysqlclient.so
(mysql-lib-path (merge-pathnames ".nix-profile/lib/mysql" (user-homedir-pathname)))
;; libcrypto.so
(system-lib-path (truename "/usr/lib/x86_64-linux-gnu")))
(loop
for libpath in `(,system-lib-path ,nix-profile-lib-path ,mysql-lib-path)
do (pushnew (truename libpath) cffi:*foreign-library-directories* :test #'equal)))
cffi:*foreign-library-directories*)
;; (setf cffi:*foreign-library-directories* nil)
(prepare-ldpath)
;; Make sure we can provide path to forgerie code...
(let ((forgerie-path (truename "../../forgerie")))
(when (and forgerie-path (probe-file forgerie-path))
(pushnew (pathname forgerie-path) asdf:*central-registry*
:test #'equal)))
(ql:quickload :forgerie)
Event Timeline
ardumont
created this paste.
Oct 13 2022, 7:51 PM
2022-10-13 19:51:03 (UTC+2)
ardumont
edited the content of this paste.
(Show Details)
Oct 13 2022, 7:55 PM
2022-10-13 19:55:57 (UTC+2)
Log In to Comment