guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

45/330: gnu: Add rust-derive-new-0.6.


From: guix-commits
Subject: 45/330: gnu: Add rust-derive-new-0.6.
Date: Mon, 18 Mar 2024 07:15:06 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit be9c5c2b22a1e7bfd97448fcbb0c9db0311ca059
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 14 12:26:56 2024 +0200

    gnu: Add rust-derive-new-0.6.
    
    * gnu/packages/crates-io.scm (rust-derive-new-0.6): New variable.
    (rust-derive-new-0.5): Inherit from rust-derive-new-0.6.
    
    Change-Id: Ie6331d8731b76ff178c944be9fe38d4059b93281
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a6db338c13..da71a04201 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18777,8 +18777,31 @@ traits for both structs and enums.")
         ("rust-rustc-version" ,rust-rustc-version-0.2)
         ("rust-syn" ,rust-syn-0.15))))))
 
+(define-public rust-derive-new-0.6
+  (package
+    (name "rust-derive-new")
+    (version "0.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "derive-new" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1b8jv6jx0b8jgkz9kmz0ciqmnf74xkk0mmvkb5z1c87932kdwl6i"))))
+    (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))))
+    (home-page "https://github.com/nrc/derive-new";)
+    (synopsis "Simple constructor functions for structs and enums")
+    (description "`#[derive(new)]` implements simple constructor functions for
+structs and enums.")
+    (license license:expat)))
+
 (define-public rust-derive-new-0.5
   (package
+    (inherit rust-derive-new-0.6)
     (name "rust-derive-new")
     (version "0.5.9")
     (source
@@ -18788,17 +18811,11 @@ traits for both structs and enums.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0d9m5kcj1rdmdjqfgj7rxxhdzx0as7p4rp1mjx5j6w5dl2f3461l"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-1))))
-    (home-page "https://github.com/nrc/derive-new";)
-    (synopsis "Simple constructor functions for structs and enums")
-    (description "`#[derive(new)]` implements simple constructor functions for
-structs and enums.")
-  (license license:expat)))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-derive-where-1
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]