diff mbox series

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

Message ID 20240907100908.25197-5-ngraves@ngraves.fr
State New
Headers show
Series [bug#73094,01/10] gnu: rust-darling-core-0.20: Update to 0.20.8. | expand

Commit Message

Nicolas Graves Sept. 7, 2024, 10:08 a.m. UTC
* gnu/packages/crates-io.scm (rust-derive-builder-macro-0.20): New
variable.
  (rust-derive-builder-macro-0.13): Inherit from
  rust-derive-builder-macro-0.20.

Change-Id: I7d39f3638c233c61f3ee29a2d107cc0e154a0246
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2f84c0c107..87369c5b98 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20840,8 +20840,31 @@  (define-public rust-derive-builder-core-0.5
          ("rust-quote" ,rust-quote-0.6)
          ("rust-syn" ,rust-syn-0.15))))))
 
+(define-public rust-derive-builder-macro-0.20
+  (package
+    (name "rust-derive-builder-macro")
+    (version "0.20.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "derive_builder_macro" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1p2ijj442j30cvd1x5231jw8b4klyf65sl3rnxvri6zpbc1ygfja"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-derive-builder-core" ,rust-derive-builder-core-0.20)
+                       ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/colin-kiegel/rust-derive-builder")
+    (synopsis "Automatically implement the builder pattern for arbitrary structs")
+    (description
+     "This crate provides a Rust macro to automatically implement the builder
+pattern for arbitrary structs.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-derive-builder-macro-0.13
   (package
+    (inherit rust-derive-builder-macro-0.20)
     (name "rust-derive-builder-macro")
     (version "0.13.1")
     (source (origin
@@ -20851,16 +20874,9 @@  (define-public rust-derive-builder-macro-0.13
               (sha256
                (base32
                 "09q17rzgf8bsj8n1bhlf4f93nmqg8va6321ppcd07f1mzg1nh0w7"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-derive-builder-core" ,rust-derive-builder-core-0.13)
-                       ("rust-syn" ,rust-syn-1))))
-    (home-page "https://github.com/colin-kiegel/rust-derive-builder")
-    (synopsis "Automatically implement the builder pattern for arbitrary structs")
-    (description
-     "This crate provides a Rust macro to automatically implement the builder
-pattern for arbitrary structs.")
-    (license (list license:expat license:asl2.0))))
+                       ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-derive-builder-macro-0.12
   (package