guix-commits
[Top][All Lists]
Advanced

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

132/156: gnu: Add rust-sval-derive-2.


From: guix-commits
Subject: 132/156: gnu: Add rust-sval-derive-2.
Date: Tue, 24 Oct 2023 08:53:04 -0400 (EDT)

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

commit cff84762036922d5974edf320235e91e6666bb39
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 24 10:08:55 2023 +0300

    gnu: Add rust-sval-derive-2.
    
    * gnu/packages/crates-io.scm (rust-sval-derive-2): New variable.
    (rust-sval-derive-1): Inherit from rust-sval-derive-2.
    
    Change-Id: I4ac1c22829a709484be54e0fe07230dfade3e400
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2c0f69ba3a..bfeb7ba324 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -72389,8 +72389,30 @@ values without proliferating generics.")
      "This package provides a no-std, object-safe serialization framework.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-sval-derive-2
+  (package
+    (name "rust-sval-derive")
+    (version "2.10.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sval-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0zba5y4gjiqzlyn6d6nzfh743qw97yjq2ll8130giddqwg5lnccf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-sval-derive-macros" ,rust-sval-derive-macros-2)
+        ("rust-sval-flatten" ,rust-sval-flatten-2))))
+    (home-page "https://github.com/sval-rs/sval";)
+    (synopsis "Custom derive for @code{sval}")
+    (description "This package provides custom derive for @code{sval}.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-sval-derive-1
   (package
+    (inherit rust-sval-derive-2)
     (name "rust-sval-derive")
     (version "1.0.0-alpha.5")
     (source
@@ -72400,17 +72422,12 @@ values without proliferating generics.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1clarb8fqxlffa2i6p70l5nr6l3pcp90p98xkvdn8f65xkc0hhkp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-1))))
-    (home-page "https://github.com/sval-rs/sval";)
-    (synopsis "Custom derive for @code{sval}")
-    (description "This package provides custom derive for @code{sval}.")
-    (license (list license:asl2.0 license:expat))))
+        ("rust-syn" ,rust-syn-1))))))
 
 (define-public rust-svd-parser-0.10
   (package



reply via email to

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