Subject: [bug#47948] [PATCH 28/49] gnu: Add rust-ordered-float.

From: Danny Milosavljevic <[email-masked]>
Date: Thu, 22 Apr 2021 12:21:47 +0200

* gnu/packages/crates-io.scm (rust-ordered-float-2): 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 5fec99f142..a9b240dc2a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50773,3 +50773,31 @@ configuration file and/or environment variables.")
     (synopsis "Macros for swc_ecma_transforms.")
     (description "Macros for swc_ecma_transforms.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-ordered-float-2
+  (package
+    (name "rust-ordered-float")
+    (version "2.1.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "ordered-float" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0632g8bacvras6nig1bb1ihgc560476jkrb3is6n542ll86q8vvn"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-num-traits" ,rust-num-traits-0.2)
+         ("rust-serde" ,rust-serde-1))))
+    (home-page
+      "https://github.com/reem/rust-ordered-float")
+    (synopsis
+      "Wrappers for total ordering on floats")
+    (description
+      "Wrappers for total ordering on floats")
+    (license license:expat)))
-- 
2.29.2