Subject: [bug#69257] [PATCH 116/228] gnu: Add rust-ordered-multimap-0.4.

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

* gnu/packages/crates-io.scm (rust-ordered-multimap-0.4): Add variable.
(rust-ordered-multimap-0.3): Inherit from rust-ordered-multimap-0.4.

Change-Id: Ibe77e9bb8268861c20c848cc9efb2307fb6ff1e7
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index af20149f6b..a1845eeb52 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44922,8 +44922,31 @@ (define-public rust-ordered-float-1
         (base32
          "0625x96987kspdxbikry5mb7hsf5pdc5bbanxd8wjwqlx0ar71hq"))))))
 
+(define-public rust-ordered-multimap-0.4
+  (package
+    (name "rust-ordered-multimap")
+    (version "0.4.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ordered-multimap" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jljv1257pfyf855jlwwas5mqkzk40b9lqfx40f73qbpf7ildmyc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-dlv-list" ,rust-dlv-list-0.3)
+                       ("rust-hashbrown" ,rust-hashbrown-0.12)
+                       ("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/sgodwincs/ordered-multimap-rs")
+    (synopsis "Insertion ordered multimap")
+    (description "This crate provides a multimap type object that
+maintains insertion order across all keys and values.")
+    (license license:expat)))
+
 (define-public rust-ordered-multimap-0.3
   (package
+    (inherit rust-ordered-multimap-0.4)
     (name "rust-ordered-multimap")
     (version "0.3.1")
     (source
@@ -44933,18 +44956,12 @@ (define-public rust-ordered-multimap-0.3
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1194q7sb2d6chbllsn7237dhhvx04iqr3sq0ii16w1pcv5x2qrqw"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-dlv-list" ,rust-dlv-list-0.2)
         ("rust-hashbrown" ,rust-hashbrown-0.9)
-        ("rust-serde" ,rust-serde-1))))
-    (home-page "https://github.com/sgodwincs/ordered-multimap-rs")
-    (synopsis "Insertion ordered multimap")
-    (description "This crate provides a multimap type object that maintains
-insertion order across all keys and values.")
-    (license license:expat)))
+        ("rust-serde" ,rust-serde-1))))))
 
 (define-public rust-ordered-stream-0.2
   (package
-- 
2.41.0