From 2ec6db456b142b8579919db613efcd2a4654f5b5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 25 Oct 2023 10:00:21 +0300 Subject: [PATCH] gnu: Add rust-sqlite3-sys-0.15. * gnu/packages/crates-io.scm (rust-sqlite3-sys-0.15): New variable. (rust-sqlite3-sys-0.13): Inherit from rust-sqlite3-sys-0.15. Change-Id: I58a146147f2c39eba9544cd9e310439e8aad7dee --- gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 13df928c7b..09b93291eb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -70735,8 +70735,31 @@ (define-public rust-sqlite3-src-0.3 (description "The package provides SQLite.") (license (list license:asl2.0 license:expat)))) +(define-public rust-sqlite3-sys-0.15 + (package + (name "rust-sqlite3-sys") + (version "0.15.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "sqlite3-sys" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0fq6m21dnd5yqrzknsmnl2565nahdwa29s7x12xhxr1kjik2qxgj")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2) + ("rust-sqlite3-src" ,rust-sqlite3-src-0.5)) + #:cargo-development-inputs (("rust-temporary" ,rust-temporary-0.6)))) + (inputs (list sqlite)) + (home-page "https://github.com/stainless-steel/sqlite3-sys") + (synopsis "Bindings to SQLite") + (description "The package provides bindings to SQLite.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-sqlite3-sys-0.13 (package + (inherit rust-sqlite3-sys-0.15) (name "rust-sqlite3-sys") (version "0.13.0") (source @@ -70746,16 +70769,11 @@ (define-public rust-sqlite3-sys-0.13 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0m1f5r4xg5i3r6795q8vwqfdcq3gh1qlfjwkywnka57bz8lg1lh4")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-libc" ,rust-libc-0.2) - ("rust-sqlite3-src" ,rust-sqlite3-src-0.3)))) - (home-page "https://github.com/stainless-steel/sqlite3-sys") - (synopsis "Bindings to SQLite") - (description "The package provides bindings to SQLite.") - (license (list license:asl2.0 license:expat)))) + ("rust-sqlite3-src" ,rust-sqlite3-src-0.3)))))) (define-public rust-st-map-0.1 (package