Subject: [bug#68312] [PATCH 070/156] gnu: Add rust-libsqlite3-sys-0.27.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:47 +0100

* gnu/packages/crates-io.scm (rust-libsqlite3-sys-0.27): New variable.
(rust-libsqlite3-sys-0.26): Inherit from rust-libsqlite3-sys-0.27.

Change-Id: Ia32f0aecb84c72781b87a48ede6b8e836ca9eb3c
---
 gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++++++++-----
 1 file changed, 30 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dc9349c92d7..f2de8407296 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38028,8 +38028,37 @@ (define-public rust-librespot-protocol-0.4
 This package contains the protobuf logic.")
     (license license:expat)))
 
+(define-public rust-libsqlite3-sys-0.27
+  (package
+    (name "rust-libsqlite3-sys")
+    (version "0.27.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libsqlite3-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "05pp60ncrmyjlxxjj187808jkvpxm06w5lvvdwwvxd2qrmnj4kng"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.69)
+                       ("rust-cc" ,rust-cc-1)
+                       ("rust-openssl-sys" ,rust-openssl-sys-0.9)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3)
+                       ("rust-prettyplease" ,rust-prettyplease-0.2)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2)
+                       ("rust-vcpkg" ,rust-vcpkg-0.2))))
+    (inputs
+     (list sqlite))
+    (home-page "https://github.com/rusqlite/rusqlite")
+    (synopsis "Native bindings to the libsqlite3 library")
+    (description "Native bindings to the libsqlite3 library")
+    (license license:expat)))
+
 (define-public rust-libsqlite3-sys-0.26
   (package
+    (inherit rust-libsqlite3-sys-0.27)
     (name "rust-libsqlite3-sys")
     (version "0.26.0")
     (source (origin
@@ -38048,11 +38077,7 @@ (define-public rust-libsqlite3-sys-0.26
         ("rust-pkg-config" ,rust-pkg-config-0.3)
         ("rust-vcpkg" ,rust-vcpkg-0.2))))
     (inputs
-     (list sqlite))
-    (home-page "https://github.com/rusqlite/rusqlite")
-    (synopsis "Native bindings to the libsqlite3 library")
-    (description "Native bindings to the libsqlite3 library")
-    (license license:expat)))
+     (list sqlite))))
 
 (define-public rust-libsqlite3-sys-0.23
   (package
-- 
2.41.0