mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-18 17:01:51 -05:00
gnu: Add rust-sqlite3-src-0.5.
* gnu/packages/crates-io.scm (rust-sqlite3-src-0.5): New variable. (rust-sqlite3-src-0.3): Inherit from rust-sqlite3-src-0.5. Change-Id: I908cacf5ace18b7c43b37ae5ac557eea231f9369
This commit is contained in:
parent
2ec6db456b
commit
d362f60d3d
1 changed files with 33 additions and 6 deletions
|
@ -70714,8 +70714,40 @@ (define-public rust-sqlite-0.26
|
||||||
(description "The package provides an interface to SQLite.")
|
(description "The package provides an interface to SQLite.")
|
||||||
(license (list license:asl2.0 license:expat))))
|
(license (list license:asl2.0 license:expat))))
|
||||||
|
|
||||||
|
(define-public rust-sqlite3-src-0.5
|
||||||
|
(package
|
||||||
|
(name "rust-sqlite3-src")
|
||||||
|
(version "0.5.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "sqlite3-src" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "0m74wrkpify3z0xvrw4i2yssn9m9sjwqa5ipk6aq6f7fl58mmjdz"))
|
||||||
|
(snippet
|
||||||
|
#~(begin (use-modules (guix build utils))
|
||||||
|
;; Only allow for linking to system sqlite3.
|
||||||
|
(delete-file-recursively "source")
|
||||||
|
(delete-file "build.rs")
|
||||||
|
(with-output-to-file "build.rs"
|
||||||
|
(lambda _
|
||||||
|
(format #t "fn main (){~@
|
||||||
|
println!(\"cargo:rustc-link-lib=sqlite3\");~@
|
||||||
|
}~%")))))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:cargo-inputs (("rust-cc" ,rust-cc-1)
|
||||||
|
("rust-pkg-config" ,rust-pkg-config-0.3))))
|
||||||
|
(inputs (list sqlite))
|
||||||
|
(home-page "https://github.com/stainless-steel/sqlite3-src")
|
||||||
|
(synopsis "Provider of SQLite")
|
||||||
|
(description "The package provides SQLite.")
|
||||||
|
(license (list license:asl2.0 license:expat))))
|
||||||
|
|
||||||
(define-public rust-sqlite3-src-0.3
|
(define-public rust-sqlite3-src-0.3
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-sqlite3-src-0.5)
|
||||||
(name "rust-sqlite3-src")
|
(name "rust-sqlite3-src")
|
||||||
(version "0.3.0")
|
(version "0.3.0")
|
||||||
(source
|
(source
|
||||||
|
@ -70725,15 +70757,10 @@ (define-public rust-sqlite3-src-0.3
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "18ygmfcpkccs8s9m5s9q31rrx1mrdps387w9yp3481jswxyb0q52"))))
|
(base32 "18ygmfcpkccs8s9m5s9q31rrx1mrdps387w9yp3481jswxyb0q52"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-inputs
|
`(#:cargo-inputs
|
||||||
(("rust-cc" ,rust-cc-1)
|
(("rust-cc" ,rust-cc-1)
|
||||||
("rust-pkg-config" ,rust-pkg-config-0.3))))
|
("rust-pkg-config" ,rust-pkg-config-0.3))))))
|
||||||
(home-page "https://github.com/stainless-steel/sqlite3-src")
|
|
||||||
(synopsis "Provider of SQLite")
|
|
||||||
(description "The package provides SQLite.")
|
|
||||||
(license (list license:asl2.0 license:expat))))
|
|
||||||
|
|
||||||
(define-public rust-sqlite3-sys-0.15
|
(define-public rust-sqlite3-sys-0.15
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue