Subject: [PATCH 13/81] gnu: Add rust-rust-librocksdb-sys-0.20.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:18 +0200

* gnu/packages/crates-io.scm (rust-rust-librocksdb-sys-0.20): Add
variable.

Change-Id: If4e5471a5d3b20fa5f1ae7cba07489acbbd08120
---
 gnu/packages/crates-io.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 66edd18b7d..aa02c15a6f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67581,6 +67581,42 @@ (define-public rust-rust-ini-0.13
         (base32 "1hifnbgaz01zja5995chy6vjacbif2m76nlxsisw7y1pxx4c2liy"))))
     (arguments `(#:skip-build? #t))))
 
+(define-public rust-rust-librocksdb-sys-0.20
+  (package
+    (name "rust-rust-librocksdb-sys")
+    (version "0.20.0+9.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rust-librocksdb-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "037fp8s5208v1k25rz7j5s05swv37ss4ar5j9c3lqmyq9144zca8"))
+       (modules '((guix build utils)))
+       (snippet '(substitute* "Cargo.toml"
+                   ;; Do not use static libraries.
+                   (("\"static\"")
+                    "\"zlib\",\n\"bzip2\"")))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-bindgen-0.69
+                           rust-bzip2-sys-0.1
+                           rust-cc-1
+                           rust-glob-0.3
+                           rust-libc-0.2
+                           rust-libz-sys-1
+                           rust-lz4-sys-1
+                           rust-pkg-config-0.3
+                           rust-tikv-jemalloc-sys-0.5
+                           rust-zstd-sys-2)
+      #:cargo-development-inputs (list rust-const-str-0.5 rust-uuid-1)))
+    (native-inputs (list clang pkg-config))
+    (home-page "https://github.com/zaidoon1/rust-rocksdb")
+    (synopsis "Native bindings to librocksdb")
+    (description "This package provides native bindings to librocksdb.")
+    (license (list license:expat license:asl2.0 license:bsd-3))))
+
 (define-public rust-rustbox-0.11
   (package
     (name "rust-rustbox")
-- 
2.41.0