summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2020-02-28 18:50:05 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2020-02-28 23:38:38 +0100
commit5ad8d7aa12afc5c76614a1bf2b03d33cc161cb2a (patch)
tree69ad00a8f65ab2e39d43824d783f157980b444aa /gnu
parenta5f4428770e32acf9dd70b95da6a0bc279fa0794 (diff)
gnu: Add sbcl-clsql-sqlite3.
* gnu/packages/lisp-xyz.scm (sbcl-clsql-sqlite3): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/lisp-xyz.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index c41a5b629b..2567beabb0 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -11086,3 +11086,24 @@ interfaces as well as a functional and an object oriented interface.")
("clsql" ,sbcl-clsql)
("uffi" ,sbcl-uffi)))
(synopsis "UFFI helper functions for Common Lisp SQL interface library")))
+
+(define-public sbcl-clsql-sqlite3
+ (package
+ (inherit sbcl-clsql)
+ (name "sbcl-clsql-sqlite3")
+ (inputs
+ `(("clsql" ,sbcl-clsql)
+ ("clsql-uffi" ,sbcl-clsql-uffi)
+ ("sqlite" ,sqlite)))
+ (arguments
+ (substitute-keyword-arguments (package-arguments sbcl-clsql)
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "db-sqlite3/sqlite3-loader.lisp"
+ (("libsqlite3")
+ (string-append (assoc-ref inputs "sqlite")
+ "/lib/libsqlite3")))
+ #t))))))
+ (synopsis "SQLite3 driver for Common Lisp SQL interface library")))