Subject: [PATCH rust-team v2 33/67] gnu: Add rust-derive-builder-0.20.

From: Jordan Moore <[email-masked]>
Date: Thu, 26 Dec 2024 22:26:21 -0500

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

Change-Id: Ia6b5b41598979be03ff581859b1fb4aea8cee2b7
---
 gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++++------
 1 file changed, 31 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 611ac2d588..7619160047 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22581,8 +22581,38 @@ (define-public rust-derive-arbitrary-0.4
                        ("rust-quote" ,rust-quote-1)
                        ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-derive-builder-0.20
+  (package
+    (name "rust-derive-builder")
+    (version "0.20.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "derive_builder" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0is9z7v3kznziqsxa5jqji3ja6ay9wzravppzhcaczwbx84znzah"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("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)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/colin-kiegel/rust-derive-builder")
+    (synopsis
+     "Rust macro to automatically implement the builder pattern for
+arbitrary structs")
+    (description
+     "This package provides Rust macro to automatically implement the
+builder pattern 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
@@ -22601,12 +22631,7 @@ (define-public rust-derive-builder-0.13
         ("rust-rustversion" ,rust-rustversion-1)
         ("rust-serde" ,rust-serde-1)
         ("rust-serde-json" ,rust-serde-json-1)
-        ("rust-trybuild" ,rust-trybuild-1))))
-    (home-page "https://github.com/colin-kiegel/rust-derive-builder")
-    (synopsis "Builder pattern for arbitrary structs")
-    (description "Rust macro to automatically implement the builder pattern
-for arbitrary structs.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-trybuild" ,rust-trybuild-1))))))
 
 (define-public rust-derive-builder-0.12
   (package
-- 
2.46.0