mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add rust-libsqlite3-sys-0.18.
* gnu/packages/crates-io.scm (rust-libsqlite3-sys-0.18): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
f3092981fb
commit
4175e2cfff
1 changed files with 36 additions and 0 deletions
|
@ -14650,6 +14650,42 @@ file.
|
||||||
(description "Native bindings to the libsqlite3 library")
|
(description "Native bindings to the libsqlite3 library")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public rust-libsqlite3-sys-0.18
|
||||||
|
(package
|
||||||
|
(inherit rust-libsqlite3-sys-0.20)
|
||||||
|
(name "rust-libsqlite3-sys")
|
||||||
|
(version "0.18.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "libsqlite3-sys" version))
|
||||||
|
(file-name
|
||||||
|
(string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1ggpbnis0rci97ln628y2v6pkgfhb6zgc8rsp444mkdfph14lw0y"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(delete-file-recursively "sqlite3")
|
||||||
|
;; Enable unstable features
|
||||||
|
(substitute* "src/lib.rs"
|
||||||
|
(("#!\\[allow\\(non_snake_case, non_camel_case_types\\)\\]" all)
|
||||||
|
(string-append "#![feature(non_exhaustive)]\n" all)))))))
|
||||||
|
(arguments
|
||||||
|
`(#:cargo-inputs
|
||||||
|
;; build-dependencies
|
||||||
|
(("rust-bindgen" ,rust-bindgen-0.53)
|
||||||
|
("rust-cc" ,rust-cc-1)
|
||||||
|
("rust-pkg-config" ,rust-pkg-config-0.3)
|
||||||
|
("rust-vcpkg" ,rust-vcpkg-0.2))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'enable-unstable-features
|
||||||
|
(lambda _
|
||||||
|
(setenv "RUSTC_BOOTSTRAP" "1")
|
||||||
|
#t)))))))
|
||||||
|
|
||||||
(define-public rust-libsqlite3-sys-0.15
|
(define-public rust-libsqlite3-sys-0.15
|
||||||
(package
|
(package
|
||||||
(inherit rust-libsqlite3-sys-0.20)
|
(inherit rust-libsqlite3-sys-0.20)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue