diff options
author | Arun Isaac <arunisaac@systemreboot.net> | 2021-09-08 19:55:12 +0530 |
---|---|---|
committer | Arun Isaac <arunisaac@systemreboot.net> | 2021-10-03 19:32:50 +0530 |
commit | 2b9e6f152117e11e636ae53c329d0400800b5729 (patch) | |
tree | 1cb48f814543e08d1229628c730b07d98d231012 /gnu/packages/guile-xyz.scm | |
parent | 9a8ce7e85915327787975ec14d15a9c3f75c2a86 (diff) | |
download | guix-2b9e6f152117e11e636ae53c329d0400800b5729.tar guix-2b9e6f152117e11e636ae53c329d0400800b5729.tar.gz |
gnu: Add guile-dbd-mysql.
* gnu/packages/guile-xyz.scm (guile-dbd-mysql): New variable.
Diffstat (limited to 'gnu/packages/guile-xyz.scm')
-rw-r--r-- | gnu/packages/guile-xyz.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 1f6dc30cb7..2796ec4d34 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -1632,6 +1632,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") |