summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-07 11:53:33 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:30 +0200
commitd0bce6a0d313c0c5ed6a3d526cf699df546c771d (patch)
tree09e4c9b63b51385ca12eff3ca7055a7b5c98e8f2
parent371814707b058a5514757c88028af7816157814b (diff)
downloadguix-d0bce6a0d313c0c5ed6a3d526cf699df546c771d.tar.gz
gnu: Add rust-num-derive-0.4.
* gnu/packages/crates-io.scm (rust-num-derive-0.4): New variable.
(rust-num-derive-0.3): Inherit from rust-num-derive-0.4.

Change-Id: I1e944897610f878b2482933c2cc0aaabe28f2575
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 25 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9561fdc24b..c3bd561043 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44291,8 +44291,32 @@ Rust.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-num-derive-0.4
+  (package
+    (name "rust-num-derive")
+    (version "0.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "num-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "04j7mndk9p6nzl9j6zrf49r2cq3250h4ldcx40jv3y48mxwpddyg"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs (("rust-num" ,rust-num-0.4)
+                                   ("rust-num-traits" ,rust-num-traits-0.2))))
+    (home-page "https://github.com/rust-num/num-derive")
+    (synopsis "Numeric syntax extensions")
+    (description "This package provides numeric syntax extensions.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-num-derive-0.3
   (package
+    (inherit rust-num-derive-0.4)
     (name "rust-num-derive")
     (version "0.3.3")
     (source
@@ -44303,7 +44327,6 @@ Rust.")
         (sha256
          (base32
           "0gbl94ckzqjdzy4j8b1p55mz01g6n1l9bckllqvaj0wfz7zm6sl7"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
@@ -44311,11 +44334,7 @@ Rust.")
         ("rust-quote" ,rust-quote-1))
        #:cargo-development-inputs
        (("rust-num" ,rust-num-0.3)
-        ("rust-num-traits" ,rust-num-traits-0.2))))
-    (home-page "https://github.com/rust-num/num-derive")
-    (synopsis "Numeric syntax extensions")
-    (description "This package provides numeric syntax extensions.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-num-traits" ,rust-num-traits-0.2))))))
 
 (define-public rust-num-derive-0.2
   (package