[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/67: gnu: Add sbcl-cl-sqlite.
From: |
Pierre Neidhardt |
Subject: |
52/67: gnu: Add sbcl-cl-sqlite. |
Date: |
Wed, 17 Oct 2018 04:20:20 -0400 (EDT) |
ambrevar pushed a commit to branch wip-next-browser2
in repository guix.
commit 185cdb7cfc82ed3ae41733d715c8517e312eed40
Author: Pierre Neidhardt <address@hidden>
Date: Wed Oct 3 20:18:13 2018 +0200
gnu: Add sbcl-cl-sqlite.
* gnu/packages/lisp.scm (sbcl-cl-sqlite): New variable.
---
gnu/packages/lisp.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index ed43e8b..4044eaa 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -61,6 +61,7 @@
#:use-module (gnu packages texinfo)
#:use-module (gnu packages version-control)
#:use-module (gnu packages xorg)
+ #:use-module (gnu packages databases)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-19))
@@ -3024,3 +3025,47 @@ package.")
("rt" ,sbcl-rt)
("bordeaux-threads" ,sbcl-bordeaux-threads)
,@(package-native-inputs sbcl-cffi-bootstrap)))))
+
+(define-public sbcl-cl-sqlite
+ (let ((commit "c738e66d4266ef63a1debc4ef4a1b871a068c112"))
+ (package
+ (name "sbcl-cl-sqlite")
+ (version (git-version "0.2" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dmitryvk/cl-sqlite")
+ (commit commit)))
+ (file-name (git-file-name "cl-sqlite" version))
+ (sha256
+ (base32
+ "1ng45k1hdb84sqjryrfx93g66bsbybmpy301wd0fdybnc5jzr36q"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ `(("iterate" ,sbcl-iterate)
+ ("cffi" ,sbcl-cffi)
+ ("sqlite" ,sqlite)))
+ (native-inputs
+ `(("fiveam" ,sbcl-fiveam)
+ ("bordeaux-threads" ,sbcl-bordeaux-threads)))
+ ;; TODO: This won't build because we need to add the lib folder of
+ ;; sqlite to cffi:*foreign-library-directories* before compiling with
+ ;; ASDF.
+ (arguments
+ `(#:tests? #f ; Upstream seems to have issues with
tests: https://github.com/dmitryvk/cl-sqlite/issues/7
+ #:asd-file "sqlite.asd"
+ #:asd-system-name "sqlite"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "sqlite-ffi.lisp"
+ (("libsqlite3" all) (string-append
+ (assoc-ref inputs "sqlite")"/lib/"
all))))))))
+ (home-page "https://common-lisp.net/project/cl-sqlite/")
+ (synopsis "Common Lisp binding for SQLite")
+ (description
+ "The @command{cl-sqlite} package is an interface to the SQLite embedded
+relational database engine.")
+ (license license:public-domain))))
- 41/67: gnu: Add queues., (continued)
- 41/67: gnu: Add queues., Pierre Neidhardt, 2018/10/17
- 43/67: gnu: Add queues.simple-cqueue., Pierre Neidhardt, 2018/10/17
- 36/67: gnu: Add proc-parse., Pierre Neidhardt, 2018/10/17
- 50/67: gnu: Add sbcl-cffi., Pierre Neidhardt, 2018/10/17
- 49/67: gnu: Add sbcl-cffi-grovel., Pierre Neidhardt, 2018/10/17
- 48/67: gnu: Add sbcl-cffi-libffi., Pierre Neidhardt, 2018/10/17
- 39/67: gnu: Add ptester., Pierre Neidhardt, 2018/10/17
- 37/67: gnu: Add parse-float., Pierre Neidhardt, 2018/10/17
- 38/67: gnu: Add simple-scanf., Pierre Neidhardt, 2018/10/17
- 40/67: gnu: Add puri., Pierre Neidhardt, 2018/10/17
- 52/67: gnu: Add sbcl-cl-sqlite.,
Pierre Neidhardt <=
- 45/67: gnu: Add queues.priority-cqueue., Pierre Neidhardt, 2018/10/17
- 42/67: gnu: Add queues.simple-queue., Pierre Neidhardt, 2018/10/17
- 46/67: gnu: Add sbcl-cffi-bootstrap., Pierre Neidhardt, 2018/10/17
- 59/67: gnu: Add trivial-garbage., Pierre Neidhardt, 2018/10/17
- 57/67: gnu: Add sbcl-cl-cffi-gtk., Pierre Neidhardt, 2018/10/17
- 63/67: gnu: Add lparallel., Pierre Neidhardt, 2018/10/17
- 60/67: gnu: Add closer-mop., Pierre Neidhardt, 2018/10/17
- 56/67: gnu: Add cl-unix-opts., Pierre Neidhardt, 2018/10/17
- 47/67: gnu: Add sbcl-cffi-toolchain., Pierre Neidhardt, 2018/10/17
- 53/67: sbcl-split-sequence (FIX), Pierre Neidhardt, 2018/10/17