Subject: [bug#44492] [PATCH v2 35/52] gnu: Add rust-mdl-1.

From: Leo Prikler <[email-masked]>
Date: Mon, 1 Mar 2021 08:50:13 +0100

* gnu/packages/crates-io.scm (rust-mdl-1): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 144e8ad3b7..9c57cb9728 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22593,6 +22593,34 @@ compression function.")
     (supported-systems '("x86_64-linux" "i686-linux"))
     (license license:expat)))
 
+(define-public rust-mdl-1
+  (package
+    (name "rust-mdl")
+    (version "1.0.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "mdl" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1mavphw0ynhggm310rbldzifcrc507jax1nzwrmj4cz1xv7vw24l"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-anyhow" ,rust-anyhow-1)
+         ("rust-bincode" ,rust-bincode-1)
+         ("rust-lmdb" ,rust-lmdb-0.8)
+         ("rust-serde" ,rust-serde-1))))
+    (home-page "https://gitlab.gnome.org/danigm/mdl")
+    (synopsis "Data model library")
+    (description "This package provides a data model library to share app state
+between threads and process and persist the data in the filesystem.  It
+implements a way to store structs instances in an LMDB database and other
+methods like BTreeMap.")
+    (license license:gpl3)))
+
 (define-public rust-measureme-0.7
   (package
     (name "rust-measureme")
-- 
2.30.1