guix-commits
[Top][All Lists]
Advanced

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

75/113: gnu: Add rust-scroll-derive-0.12.


From: guix-commits
Subject: 75/113: gnu: Add rust-scroll-derive-0.12.
Date: Mon, 22 Jan 2024 04:30:38 -0500 (EST)

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

commit ee31ef123bd9ecc9d610ded6895c7097fad4df6d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Jan 22 09:50:31 2024 +0200

    gnu: Add rust-scroll-derive-0.12.
    
    * gnu/packages/crates-io.scm (rust-scroll-derive-0.12): New variable.
    (rust-scroll-derive-0.11): Inherit from rust-scroll-derive-0.12.
    
    Change-Id: I96acacaccafc5755b73f54dbfde09a7e00a62b9d
---
 gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d76ad63bb9..60ce2a5d6f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -58592,8 +58592,33 @@ endian-aware Read/Write traits for byte buffers.")
 endian-aware Read/Write traits for byte buffers.")
     (license license:expat)))
 
+(define-public rust-scroll-derive-0.12
+  (package
+    (name "rust-scroll-derive")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "scroll_derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0cmr3hxk318s2ivv37cik2l1r0d8r0qhahnin5lpxbr5w3yw50bz"))))
+    (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))
+       #:cargo-development-inputs (("rust-scroll" ,rust-scroll-0.11))))
+    (home-page "https://github.com/m4b/scroll";)
+    (synopsis "Pread and Pwrite traits from the scroll crate")
+    (description
+     "This package provides a macros 1.1 derive implementation for Pread and
+Pwrite traits from the scroll crate.")
+    (license license:expat)))
+
 (define-public rust-scroll-derive-0.11
   (package
+    (inherit rust-scroll-derive-0.12)
     (name "rust-scroll-derive")
     (version "0.11.1")
     (source (origin
@@ -58603,19 +58628,12 @@ endian-aware Read/Write traits for byte buffers.")
               (sha256
                (base32
                 "1bi5ljnzksvqhic6j7i2a2ap41s78xr0gifkgjxdxlj63pw4kc8x"))))
-    (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))
-       #:cargo-development-inputs (("rust-scroll" ,rust-scroll-0.11))))
-    (home-page "https://github.com/m4b/scroll";)
-    (synopsis "Pread and Pwrite traits from the scroll crate")
-    (description
-     "This package provides a macros 1.1 derive implementation for Pread and
-Pwrite traits from the scroll crate.")
-    (license license:expat)))
+       #:cargo-development-inputs (("rust-scroll" ,rust-scroll-0.11))))))
 
 (define-public rust-scroll-derive-0.10
   (package



reply via email to

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