[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50476] [PATCH 06/10] gnu: guile-dbd-sqlite3: Inherit from guile-dbi
From: |
Arun Isaac |
Subject: |
[bug#50476] [PATCH 06/10] gnu: guile-dbd-sqlite3: Inherit from guile-dbi. |
Date: |
Wed, 8 Sep 2021 20:24:09 +0530 |
* gnu/packages/guile-xyz.scm (guile-dbd-sqlite3): Inherit from
guile-dbi. Remove version, source, build-system, home-page and license fields.
[arguments]: Replace chdir phase. Delete patch-extension-path phase.
[native-inputs]: Replace guile-dbi-bootstrap with guile-dbi.
---
gnu/packages/guile-xyz.scm | 35 ++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index baf245c865..1a3ddcf25d 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1560,32 +1560,29 @@ It currently supports MySQL, Postgres and SQLite3.")
(define-public guile-dbd-sqlite3
(package
+ (inherit guile-dbi)
(name "guile-dbd-sqlite3")
- (version "2.1.6")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://example.org") ;only hosted on Software
Heritage
- (commit "0758c615e9e85ad76d153d5dc6179881f1f50089")))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1rwf3z6ib6nkhfnk2nw8p6fqirdx2pparcrlmsm0i2ii62plpqhb"))))
- (build-system gnu-build-system)
- (native-inputs
- `(("pkg-config" ,pkg-config)
- ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for
headers
+ (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-sqlite3.
+ (chdir "guile-dbd-sqlite3")))
+ (delete 'patch-extension-path)))))
(inputs
`(("sqlite" ,sqlite)
("zlib" ,(@ (gnu packages compression) zlib))))
+ (native-inputs
+ `(("guile-dbi" ,guile-dbi) ; only required for headers
+ ("pkg-config" ,pkg-config)
+ ,@(package-native-inputs guile-dbi)))
(synopsis "Guile DBI driver for SQLite")
- ;; Unofficial home-page.
- ;; Added by b9cbfa52f71505de8447fefabd97f16d0a9cbde6 (2016-06)
- (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
(description
"guile-dbi is a library for Guile that provides a convenient interface to
-SQL databases. This package implements the interface for SQLite.")
- (license license:gpl2+)))
+SQL databases. This package implements the interface for SQLite.")))
(define-public guile-dbd-postgresql
(let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
--
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 <=
- [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, 2021/09/30
- [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