diff mbox series

[bug#69257,rust-team,v3,47/75] gnu: Add rust-option-operations-0.5.

Message ID 0ac2e457f0f499cf4b9092f7146ef960f14e339a.1714820130.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:35 a.m. UTC
* gnu/packages/crates-io.scm (rust-option-operations-0.5): Add variable.
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 39486a2ec5..e2f64d7001 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51091,8 +51091,31 @@  (define-public rust-option-ext-0.2
     (description "Extends `Option` with additional operations")
     (license license:mpl2.0)))
 
+(define-public rust-option-operations-0.5
+  (package
+    (name "rust-option-operations")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "option-operations" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1l13n9487gk6063zzjdwzqbig78n8mh6dxsbiq9nbaxfn5xx49kw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-paste" ,rust-paste-1))))
+    (home-page "https://github.com/fengalin/option-operations")
+    (synopsis
+      "Improve arithmetic operations usability when dealing with Options")
+    (description
+     "This package provides traits and auto-implementations to improve
+arithmetic operations usability when dealing with Rust Options.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-option-operations-0.4
   (package
+    (inherit rust-option-operations-0.5)
     (name "rust-option-operations")
     (version "0.4.1")
     (source (origin
@@ -51101,16 +51124,7 @@  (define-public rust-option-operations-0.4
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "18jhy5sc56gwdvqc3asr6az685zc9zkgv8p8n69s94bcj6bibc22"))))
-    (build-system cargo-build-system)
-    (arguments
-     (list #:cargo-inputs `(("rust-paste" ,rust-paste-1))))
-    (home-page "https://github.com/fengalin/option-operations")
-    (synopsis "Improved arithmetic operations when dealing with Rust Options")
-    (description
-     "Traits and auto-implementations to improve arithmetic operations
-usability when dealing with Rust Options.")
-    (license (list license:expat license:asl2.0))))
+                "18jhy5sc56gwdvqc3asr6az685zc9zkgv8p8n69s94bcj6bibc22"))))))
 
 (define-public rust-option-set-0.2
   (package