[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/10: gnu: Add cl-mysql.
From: |
guix-commits |
Subject: |
01/10: gnu: Add cl-mysql. |
Date: |
Wed, 26 Feb 2020 05:32:22 -0500 (EST) |
glv pushed a commit to branch master
in repository guix.
commit 8a6c0f55152f95dcff675960d5870b1acdfc9a34
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Tue Feb 25 18:33:30 2020 +0100
gnu: Add cl-mysql.
* gnu/packages/lisp-xyz.scm (sbcl-cl-mysql, cl-mysql): New variables.
---
gnu/packages/lisp-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 7afd409..c6610d8 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -51,6 +51,7 @@
#:use-module (guix build-system trivial)
#:use-module (gnu packages c)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages databases)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
#:use-module (gnu packages imagemagick)
@@ -10718,3 +10719,45 @@ approach to templating.")
(define-public ecl-lquery
(sbcl-package->ecl-package sbcl-lquery))
+
+(define-public sbcl-cl-mysql
+ (let ((commit "ab56c279c1815aec6ca0bfe85164ff7e85cfb6f9")
+ (revision "1"))
+ (package
+ (name "sbcl-cl-mysql")
+ (version (git-version "0.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/hackinghat/cl-mysql.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0dg5ynx2ww94d0qfwrdrm7plkn43h64hs4iiq9mj2s1s4ixnp3lr"))))
+ (build-system asdf-build-system/sbcl)
+ (native-inputs
+ `(("stefil" ,sbcl-stefil)))
+ (inputs
+ `(("cffi" ,sbcl-cffi)
+ ("mariadb-lib" ,mariadb "lib")))
+ (arguments
+ `(#:tests? #f ; TODO: Tests require a running server
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "system.lisp"
+ (("libmysqlclient_r" all)
+ (string-append (assoc-ref inputs "mariadb-lib")
+ "/lib/"
+ all)))
+ #t)))))
+ (synopsis "Common Lisp wrapper for MySQL")
+ (description
+ "@code{cl-mysql} is a Common Lisp implementation of a MySQL wrapper.")
+ (home-page "http://www.hackinghat.com/index.php/cl-mysql")
+ (license license:expat))))
+
+(define-public cl-mysql
+ (sbcl-package->cl-source-package sbcl-cl-mysql))
- branch master updated (849f6bc -> 0e9fc3d), guix-commits, 2020/02/26
- 01/10: gnu: Add cl-mysql.,
guix-commits <=
- 02/10: gnu: Add cl-simple-date., guix-commits, 2020/02/26
- 03/10: gnu: Add cl-postgres., guix-commits, 2020/02/26
- 04/10: gnu: Add cl-simple-date-postgres-glue., guix-commits, 2020/02/26
- 05/10: gnu: Add cl-s-sql., guix-commits, 2020/02/26
- 07/10: gnu: Add cl-dbi., guix-commits, 2020/02/26
- 08/10: gnu: Add cl-dbd-mysql., guix-commits, 2020/02/26
- 10/10: gnu: Add cl-dbd-sqlite3., guix-commits, 2020/02/26
- 06/10: gnu: Add cl-postmodern., guix-commits, 2020/02/26
- 09/10: gnu: Add cl-dbd-postgres., guix-commits, 2020/02/26