diff mbox series

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

Message ID 20240907100908.25197-4-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-core-0.20): New
variable.
  (rust-derive-builder-core-0.13): Inherit from
  rust-derive-builder-core-0.20.

Change-Id: I3a6ee4eaf1ddc00aa8e131bdc59f11d8ad54208c
---
 gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 937923774e..2f84c0c107 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20687,8 +20687,34 @@  (define-public rust-derive-builder-0.7
          ("rust-skeptic" ,rust-skeptic-0.13)
          ("rust-syn" ,rust-syn-0.15))))))
 
+(define-public rust-derive-builder-core-0.20
+  (package
+    (name "rust-derive-builder-core")
+    (version "0.20.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "derive_builder_core" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0f5fg9cc9y53fx1fm4bh0s1yxwvc7v1zsircy8s054hkjq2glcbl"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-darling" ,rust-darling-0.20)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs
+       (("rust-pretty-assertions" ,rust-pretty-assertions-1))))
+    (home-page "https://github.com/colin-kiegel/rust-derive-builder")
+    (synopsis "Internal helper library for @code{rust-derive-builder}")
+    (description
+     "Internal helper library for @code{rust-derive-builder}.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-derive-builder-core-0.13
   (package
+    (inherit rust-derive-builder-core-0.20)
     (name "rust-derive-builder-core")
     (version "0.13.1")
     (source (origin
@@ -20698,19 +20724,13 @@  (define-public rust-derive-builder-core-0.13
               (sha256
                (base32
                 "1381dgjq6jhirww088dff8b00v2d99illvnan0l0kvz7qdy33v54"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-darling" ,rust-darling-0.14)
                        ("rust-proc-macro2" ,rust-proc-macro2-1)
                        ("rust-quote" ,rust-quote-1)
                        ("rust-syn" ,rust-syn-1))
        #:cargo-development-inputs
-       (("rust-pretty-assertions" ,rust-pretty-assertions-1))))
-    (home-page "https://github.com/colin-kiegel/rust-derive-builder")
-    (synopsis "Internal helper library for @code{rust-derive-builder}")
-    (description
-     "Internal helper library for @code{rust-derive-builder}.")
-    (license (list license:expat license:asl2.0))))
+       (("rust-pretty-assertions" ,rust-pretty-assertions-1))))))
 
 (define-public rust-derive-builder-core-0.12
   (package