diff mbox series

[bug#73094,v3,06/10] gnu: Add rust-derive-builder-0.20.

Message ID 20240909100804.13552-7-herman@rimm.ee
State New
Headers show
Series Add python-safetensors. | expand

Commit Message

Herman Rimm Sept. 9, 2024, 10:07 a.m. UTC
From: Nicolas Graves <ngraves@ngraves.fr>

* gnu/packages/crates-io.scm (rust-derive-builder-0.20): New variable.
(rust-derive-builder-0.13): Inherit form rust-derive-builder-0.20.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 42b8886f3f..9b276578b6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20433,21 +20433,21 @@  (define-public rust-derive-arbitrary-0.4
                        ("rust-quote" ,rust-quote-1)
                        ("rust-syn" ,rust-syn-1))))))
 
-(define-public rust-derive-builder-0.13
+(define-public rust-derive-builder-0.20
   (package
     (name "rust-derive-builder")
-    (version "0.13.1")
+    (version "0.20.1")
     (source (origin
               (method url-fetch)
               (uri (crate-uri "derive_builder" version))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "1irqx6bz74kx48ivdwqp2xl1ibr8dbdwgh6573r8g00d82gicncg"))))
+                "0yw7frfcgza5rm7f1ckrsy1qy0i6gim3blw12xm186d1wrzg6cyd"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-derive-builder-macro" ,rust-derive-builder-macro-0.13))
+       (("rust-derive-builder-macro" ,rust-derive-builder-macro-0.20))
        #:cargo-development-inputs
        (("rust-pretty-assertions" ,rust-pretty-assertions-0.6)
         ("rust-rustversion" ,rust-rustversion-1)
@@ -20460,6 +20460,28 @@  (define-public rust-derive-builder-0.13
 for arbitrary structs.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-derive-builder-0.13
+  (package
+    (inherit rust-derive-builder-0.20)
+    (name "rust-derive-builder")
+    (version "0.13.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "derive_builder" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1irqx6bz74kx48ivdwqp2xl1ibr8dbdwgh6573r8g00d82gicncg"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-derive-builder-macro" ,rust-derive-builder-macro-0.13))
+       #:cargo-development-inputs
+       (("rust-pretty-assertions" ,rust-pretty-assertions-0.6)
+        ("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-trybuild" ,rust-trybuild-1))))))
+
 (define-public rust-derive-builder-0.12
   (package
     (inherit rust-derive-builder-0.13)