Subject: [PATCH 182/228] gnu: Add rust-olm-sys-1.

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

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

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

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 827d1b6561..8875fa230f 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -3045,6 +3045,27 @@ (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-sys-1
+  (package
+    (name "rust-olm-sys")
+    (version "1.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "olm-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ffk09h237vk962d0iclp13x2bqha9qpy58gkwgh52a9c8jwzzia"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cmake" ,rust-cmake-0.1)
+                       ("rust-fs-extra" ,rust-fs-extra-1))))
+    ;; TODO: try olm input.
+    (home-page "https://gitlab.gnome.org/BrainBlasted/olm-sys")
+    (synopsis "Low level binding for libolm")
+    (description "This package provides low level binding for libolm.")
+    (license license:asl2.0)))
+
 (define-public rust-orion-0.17
   (package
     (name "rust-orion")
-- 
2.41.0