[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: Add cl-clsql.
From: |
guix-commits |
Subject: |
03/08: gnu: Add cl-clsql. |
Date: |
Fri, 28 Feb 2020 17:43:05 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit 5ae56f681bfbda09c2831e79280a1dee101aad0e
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Wed Feb 26 14:29:40 2020 +0100
gnu: Add cl-clsql.
* gnu/packages/lisp-xyz.scm (sbcl-clsql, cl-clsql): New variables.
---
gnu/packages/lisp-xyz.scm | 71 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index ca62ca6..4d656a3 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -11005,3 +11005,74 @@ interface for MySQL, PostgreSQL and SQLite.")
(lambda _
(make-file-writable "doc/html.tar.gz")
#t)))))))
+
+(define-public sbcl-clsql
+ (package
+ (name "sbcl-clsql")
+ (version "6.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "http://git.kpe.io/clsql.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1v1k3s5bsy3lgd9gk459bzpb1r0kdjda25s29samxw4gsgf1fqvp"))
+ (snippet
+ '(begin
+ ;; Remove precompiled libraries.
+ (delete-file "db-mysql/clsql_mysql.dll")
+ (delete-file "uffi/clsql_uffi.dll")
+ (delete-file "uffi/clsql_uffi.lib")
+ #t))))
+ (build-system asdf-build-system/sbcl)
+ (native-inputs
+ `(("cffi-uffi-compat" ,sbcl-cffi-uffi-compat)
+ ("rt" ,sbcl-rt)
+ ("uffi" ,sbcl-uffi)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-permissions
+ (lambda _
+ (make-file-writable "doc/html.tar.gz")
+ #t))
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* "clsql.asd"
+ (("clsql-tests :force t")
+ "clsql-tests"))
+ #t)))))
+ (synopsis "Common Lisp SQL Interface library")
+ (description
+ "@code{clsql} is a Common Lisp interface to SQL RDBMS based on the
+Xanalys CommonSQL interface for Lispworks. It provides low-level database
+interfaces as well as a functional and an object oriented interface.")
+ (home-page "http://clsql.kpe.io/")
+ (license license:llgpl)))
+
+(define-public cl-clsql
+ (package
+ (inherit (sbcl-package->cl-source-package sbcl-clsql))
+ (native-inputs
+ `(("rt" ,cl-rt)))
+ (inputs
+ `(("mysql" ,mysql)
+ ("postgresql" ,postgresql)
+ ("sqlite" ,sqlite)
+ ("zlib" ,zlib)))
+ (propagated-inputs
+ `(("cl-postgres" ,cl-postgres)
+ ("cffi-uffi-compat" ,cl-cffi-uffi-compat)
+ ("md5" ,cl-md5)
+ ("uffi" ,cl-uffi)))
+ (arguments
+ `(#:phases
+ ;; asdf-build-system/source has its own phases and does not inherit
+ ;; from asdf-build-system/sbcl phases.
+ (modify-phases %standard-phases/source
+ (add-after 'unpack 'fix-permissions
+ (lambda _
+ (make-file-writable "doc/html.tar.gz")
+ #t)))))))
- branch master updated (512068a -> 079ee3b), guix-commits, 2020/02/28
- 05/08: gnu: Add sbcl-clsql-sqlite3., guix-commits, 2020/02/28
- 06/08: gnu: Add sbcl-clsql-postgresql., guix-commits, 2020/02/28
- 02/08: gnu: Add cl-uffi., guix-commits, 2020/02/28
- 01/08: gnu: Add cl-cffi-uffi-compat., guix-commits, 2020/02/28
- 03/08: gnu: Add cl-clsql.,
guix-commits <=
- 04/08: gnu: Add sbcl-clsql-uffi., guix-commits, 2020/02/28
- 08/08: gnu: Add sbcl-clsql-mysql., guix-commits, 2020/02/28
- 07/08: gnu: Add sbcl-clsql-postgresql-socket3., guix-commits, 2020/02/28