aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/lisp-xyz.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2020-02-28 19:33:55 +0100
committerGuillaume Le Vaillant <glv@posteo.net>2020-02-28 23:38:38 +0100
commitf9680d523015dd514a189cb0f60438edd3d83adb (patch)
tree928868c6cacd9cfe74c9eaabaf1e9329e4842b6c /gnu/packages/lisp-xyz.scm
parentcd53df62c9d0872331c6872727feeb5aca6cd3f6 (diff)
downloadguix-f9680d523015dd514a189cb0f60438edd3d83adb.tar
guix-f9680d523015dd514a189cb0f60438edd3d83adb.tar.gz
gnu: Add sbcl-clsql-postgresql-socket3.
* gnu/packages/lisp-xyz.scm (sbcl-clsql-postgresql-socket3): New variable.
Diffstat (limited to 'gnu/packages/lisp-xyz.scm')
-rw-r--r--gnu/packages/lisp-xyz.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 300638ba03..52e2d4a3f4 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -11128,3 +11128,26 @@ interfaces as well as a functional and an object oriented interface.")
"/lib/libpq")))
#t))))))
(synopsis "PostgreSQL driver for Common Lisp SQL interface library")))
+
+(define-public sbcl-clsql-postgresql-socket3
+ (package
+ (inherit sbcl-clsql)
+ (name "sbcl-clsql-postgresql-socket3")
+ (inputs
+ `(("cl-postgres" ,sbcl-cl-postgres)
+ ("clsql" ,sbcl-clsql)
+ ("md5" ,sbcl-md5)))
+ (arguments
+ (substitute-keyword-arguments (package-arguments sbcl-clsql)
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (add-after 'create-asd-file 'fix-asd-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (lib (string-append out "/lib/" (%lisp-type)))
+ (asd (string-append lib "/clsql-postgresql-socket3.asd")))
+ (substitute* asd
+ (("CLSQL-POSTGRESQL-SOCKET-SYSTEM::")
+ "")))
+ #t))))))
+ (synopsis "PostgreSQL driver for Common Lisp SQL interface library")))