gnu: Add rust-liblmdb-sys-0.2.

* gnu/packages/crates-database.scm (rust-liblmdb-sys-0.2): New variable.

Change-Id: I3c78baed5a5491e6827ec55b7ff8848c7e38249f
This commit is contained in:
Efraim Flashner 2025-01-03 13:14:50 +02:00
parent 07451de9ed
commit 4d53b6ce7f
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -275,6 +275,38 @@ (define-public rust-diesel-table-macro-syntax-0.1
(description "Internal diesel crate.")
(license (list license:expat license:asl2.0))))
(define-public rust-liblmdb-sys-0.2
(package
(name "rust-liblmdb-sys")
(version "0.2.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "liblmdb-sys" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0j9f9l6fbaaqfbvfmb9rd2b9acqjyh7pn1ma3bv0pxl0lnikivgy"))
(snippet
#~(begin
(use-modules (guix build utils))
(delete-file-recursively "mdb")
;; Inspired by Debian's patch for bzip2-sys.
(delete-file "build.rs")
(with-output-to-file "build.rs"
(lambda _
(format #t "fn main() {~@
println!(\"cargo:rustc-link-lib=lmdb\");~@
}~%")))))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-gcc" ,rust-gcc-0.3)
("rust-libc" ,rust-libc-0.2))))
(inputs (list lmdb))
(home-page "https://github.com/vhbit/lmdb-rs")
(synopsis "LMDB native lib")
(description "This package provides LMDB native lib.")
(license license:expat)))
(define-public rust-libsqlite3-sys-0.30
(package
(name "rust-libsqlite3-sys")