gnu: guile-dbd-sqlite3: Inherit from guile-dbi.
* 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.
This commit is contained in:
parent
658cc8b25f
commit
c4698e50f2
1 changed files with 16 additions and 19 deletions
|
|
@ -1587,32 +1587,29 @@ It currently supports MySQL, Postgres and SQLite3.")
|
||||||
|
|
||||||
(define-public guile-dbd-sqlite3
|
(define-public guile-dbd-sqlite3
|
||||||
(package
|
(package
|
||||||
|
(inherit guile-dbi)
|
||||||
(name "guile-dbd-sqlite3")
|
(name "guile-dbd-sqlite3")
|
||||||
(version "2.1.6")
|
(arguments
|
||||||
(source (origin
|
(substitute-keyword-arguments (package-arguments guile-dbi)
|
||||||
(method git-fetch)
|
((#:phases phases)
|
||||||
(uri (git-reference
|
`(modify-phases ,phases
|
||||||
(url "https://example.org") ;only hosted on Software Heritage
|
(replace 'chdir
|
||||||
(commit "0758c615e9e85ad76d153d5dc6179881f1f50089")))
|
(lambda _
|
||||||
(file-name (git-file-name name version))
|
;; The upstream Git repository contains all the code, so change
|
||||||
(sha256
|
;; to the directory specific to guile-dbd-sqlite3.
|
||||||
(base32
|
(chdir "guile-dbd-sqlite3")))
|
||||||
"1rwf3z6ib6nkhfnk2nw8p6fqirdx2pparcrlmsm0i2ii62plpqhb"))))
|
(delete 'patch-extension-path)))))
|
||||||
(build-system gnu-build-system)
|
|
||||||
(native-inputs
|
|
||||||
`(("pkg-config" ,pkg-config)
|
|
||||||
("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
|
|
||||||
(inputs
|
(inputs
|
||||||
`(("sqlite" ,sqlite)
|
`(("sqlite" ,sqlite)
|
||||||
("zlib" ,(@ (gnu packages compression) zlib))))
|
("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")
|
(synopsis "Guile DBI driver for SQLite")
|
||||||
;; Unofficial home-page.
|
|
||||||
;; Added by b9cbfa52f71505de8447fefabd97f16d0a9cbde6 (2016-06)
|
|
||||||
(home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
|
|
||||||
(description
|
(description
|
||||||
"guile-dbi is a library for Guile that provides a convenient interface to
|
"guile-dbi is a library for Guile that provides a convenient interface to
|
||||||
SQL databases. This package implements the interface for SQLite.")
|
SQL databases. This package implements the interface for SQLite.")))
|
||||||
(license license:gpl2+)))
|
|
||||||
|
|
||||||
(define-public guile-dbd-postgresql
|
(define-public guile-dbd-postgresql
|
||||||
(let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
|
(let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
|
||||||
|
|
|
||||||
Reference in a new issue