Subject: [bug#69257] [PATCH 183/228] gnu: Add rust-olm-rs-2.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:09:13 +0100

* gnu/packages/crates-crypto.scm (rust-olm-rs-2): Add variable.

Change-Id: I83a5dac6c15aebbca58d8010bd87ebf4e6de2e02
---
 gnu/packages/crates-crypto.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 8875fa230f..1c62c49448 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -3045,6 +3045,31 @@ (define-public rust-nettle-sys-2
     (license ;; licensed under either of these, at your option
      (list license:lgpl3 license:gpl2 license:gpl3))))
 
+(define-public rust-olm-rs-2
+  (package
+    (name "rust-olm-rs")
+    (version "2.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "olm-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09f7mq2dahyhy7w0xbb8750skzh7wmzpnvbmnkby830iaiq2qv6x"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-getrandom" ,rust-getrandom-0.2)
+                       ("rust-olm-sys" ,rust-olm-sys-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs (("rust-base64" ,rust-base64-0.11)
+                                   ("rust-json" ,rust-json-0.12))))
+    (home-page "https://gitlab.gnome.org/jhaye/olm-rs")
+    (synopsis "A Rust wrapper for libolm.")
+    (description "This package provides a Rust wrapper for libolm.")
+    (license license:asl2.0)))
+
 (define-public rust-olm-sys-1
   (package
     (name "rust-olm-sys")
-- 
2.41.0