[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50476] [PATCH v2 09/10] gnu: Add guile-dbd-mysql.
From: |
Arun Isaac |
Subject: |
[bug#50476] [PATCH v2 09/10] gnu: Add guile-dbd-mysql. |
Date: |
Thu, 30 Sep 2021 22:22:34 +0530 |
* gnu/packages/guile-xyz.scm (guile-dbd-mysql): New variable.
---
gnu/packages/guile-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index b321df93a5..07e3f6ba2b 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1605,6 +1605,39 @@ SQL databases. This package implements the interface
for SQLite.")))
interface to SQL databases. This package implements the interface for
PostgreSQL.")))
+(define-public guile-dbd-mysql
+ (package
+ (inherit guile-dbi)
+ (name "guile-dbd-mysql")
+ (arguments
+ (substitute-keyword-arguments (package-arguments guile-dbi)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'chdir
+ (lambda _
+ ;; The upstream Git repository contains all the code, so change
+ ;; to the directory specific to guile-dbd-mysql.
+ (chdir "guile-dbd-mysql")))
+ (add-after 'chdir 'patch-src
+ (lambda _
+ (substitute* "configure.ac"
+ (("mariadbclient") "mariadb"))
+ (substitute* "src/guile-dbd-mysql.c"
+ (("<mariadb/") "<mysql/"))))
+ (delete 'patch-extension-path)))))
+ (inputs
+ `(("mariadb" ,mariadb "dev")
+ ("mariadb" ,mariadb "lib")
+ ("zlib" ,zlib)))
+ (native-inputs
+ `(("guile-dbi" ,guile-dbi) ; only required for headers
+ ,@(package-native-inputs guile-dbi)))
+ (synopsis "Guile DBI driver for MySQL")
+ (description "@code{guile-dbi} is a library for Guile that provides a
+convenient interface to SQL databases. This package implements the interface
+for MySQL.")
+ (license license:gpl2+)))
+
(define-public guile-config
(package
(name "guile-config")
--
2.33.0
- [bug#50476] [PATCH 00/10] Update guile-dbi and guile-dbd-*, Arun Isaac, 2021/09/08
- [bug#50476] [PATCH 01/10] gnu: guile-dbi: Update upstream source., Arun Isaac, 2021/09/08
- [bug#50476] [PATCH 05/10] gnu: guile-dbi: Update to 2.1.8., Arun Isaac, 2021/09/08
- [bug#50476] [PATCH 06/10] gnu: guile-dbd-sqlite3: Inherit from guile-dbi., Arun Isaac, 2021/09/08
- [bug#50476] [PATCH 10/10] gnu: guile-dbd-sqlite3: Use normal variable instead of @ reference., Arun Isaac, 2021/09/08
- [bug#50476] [PATCH 03/10] gnu: guile-dbi: Search for dbd libraries using native-search-paths., Arun Isaac, 2021/09/08
- [bug#50476] [PATCH 00/10] Update guile-dbi and guile-dbd-*, Ludovic Courtès, 2021/09/21
- [bug#50476] [PATCH 00/10] Update guile-dbi and guile-dbd-*, Arun Isaac, 2021/09/22
- [bug#50476] [PATCH 00/10] Update guile-dbi and guile-dbd-*, Ludovic Courtès, 2021/09/27
- [bug#50476] [PATCH v2 09/10] gnu: Add guile-dbd-mysql.,
Arun Isaac <=
- [bug#50476] [PATCH v2 01/10] gnu: guile-dbi: Update upstream source., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 02/10] gnu: guile-dbi: Remove hard-coded guile effective version., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 08/10] gnu: guile-dbi-bootstrap: Remove package., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 03/10] gnu: guile-dbi: Search for dbd libraries using native-search-paths., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 05/10] gnu: guile-dbi: Update to 2.1.8., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 06/10] gnu: guile-dbd-sqlite3: Inherit from guile-dbi., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 07/10] gnu: guile-dbd-postgresql: Inherit from guile-dbi., Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 00/10] Update guile-dbi and guile-dbd-*, Arun Isaac, 2021/09/30
- [bug#50476] [PATCH v2 04/10] gnu: guile-dbi: Do not return #t from custom phases., Arun Isaac, 2021/09/30
[bug#50476] [PATCH 04/10] gnu: guile-dbi: Do not return #t from custom phases., Arun Isaac, 2021/09/08