diff mbox series

[bug#69890,39/43] gnu: Add rust-byte-unit-5.

Message ID 155d35e7e997cb3de2387211a1c9cd3b1f18475b.1710817681.git.normally_js@posteo.net
State New
Headers show
Series gnu: Add procs. | expand

Commit Message

normally_js March 19, 2024, 3:51 a.m. UTC
* gnu/packages/crates-io.scm (rust-byte-unit-5): New variable.

Change-Id: I5ec5803355ec978b39bd41e995a55cd7d8b6ce0f
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5ce9579c6..cf8c957b2e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8685,28 +8685,49 @@  (define-public rust-byte-tools-0.3
     (description "Bytes related utility functions.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-byte-unit-4
+(define-public rust-byte-unit-5
   (package
     (name "rust-byte-unit")
-    (version "4.0.9")
+    (version "5.1.4")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "byte-unit" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0lxi11qf6h1rqr0yhsh7i6755l325qrkv9r4bgismyik531mi1qw"))))
+        (base32 "0gnnl92szl7d6bxz028n03ifflg96z4xp0lxqc3m8rmjy2yikb1k"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-serde" ,rust-serde-1)
-        ("rust-utf8-width" ,rust-utf8-width-0.1))))
+       (("rust-rocket" ,rust-rocket-0.5)
+        ("rust-rust-decimal" ,rust-rust-decimal-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-utf8-width" ,rust-utf8-width-0.1))
+       #:cargo-development-inputs
+       (("rust-serde-json" ,rust-serde-json-1))))
     (home-page "https://magiclen.org/byte-unit")
     (synopsis "Library for interaction with units of bytes")
     (description
      "This package provides a library for interaction with units of bytes.")
     (license license:expat)))
 
+(define-public rust-byte-unit-4
+  (package
+    (inherit rust-byte-unit-5)
+    (name "rust-byte-unit")
+    (version "4.0.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "byte-unit" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0lxi11qf6h1rqr0yhsh7i6755l325qrkv9r4bgismyik531mi1qw"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-serde" ,rust-serde-1)
+        ("rust-utf8-width" ,rust-utf8-width-0.1))))))
+
 (define-public rust-bytecheck-0.6
   (package
     (name "rust-bytecheck")