guix-commits
[Top][All Lists]
Advanced

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

01/19: gnu: Add rust-flatbuffers-23.


From: guix-commits
Subject: 01/19: gnu: Add rust-flatbuffers-23.
Date: Sun, 11 Feb 2024 08:46:45 -0500 (EST)

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

commit 76ace7bcf38af1603cea789cff1f3d38463fe14e
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Fri Jan 26 20:43:11 2024 +0100

    gnu: Add rust-flatbuffers-23.
    
    * gnu/packages/crates-io.scm (rust-flatbuffers-23): New variable.
    (rust-flatbuffers-2): Inherit from rust-flatbuffers-23.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cc783df414..7854412fe5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22829,8 +22829,32 @@ test multiple times.")
      "A procedural macro to insert @code{flame::start_guard(_)} calls.")
     (license license:asl2.0)))
 
+(define-public rust-flatbuffers-23
+  (package
+    (name "rust-flatbuffers")
+    (version "23.5.26")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "flatbuffers" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0h46mg8yb9igda4ff5dajkzc6k5mf4ix472asqb8rmv24ki57b2d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-rustc-version" ,rust-rustc-version-0.4)
+        ("rust-serde" ,rust-serde-1))))
+    (home-page "https://flatbuffers.dev/";)
+    (synopsis "FlatBuffers Rust serialization library")
+    (description
+     "This crates provides FlatBuffers runtime serialization library.")
+    (license license:asl2.0)))
+
 (define-public rust-flatbuffers-2
   (package
+    (inherit rust-flatbuffers-23)
     (name "rust-flatbuffers")
     (version "2.0.0")
     (source
@@ -22840,18 +22864,12 @@ test multiple times.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1xp5ppif0hvgh9kfvy1199gdmjc3dw1517022l1x3ynpphw5fk7g"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-bitflags" ,rust-bitflags-1)
         ("rust-smallvec" ,rust-smallvec-1)
-        ("rust-thiserror" ,rust-thiserror-1))))
-    (home-page "https://google.github.io/flatbuffers/";)
-    (synopsis "FlatBuffers Rust serialization library")
-    (description
-     "This crates provides FlatBuffers runtime serialization library.")
-    (license license:asl2.0)))
+        ("rust-thiserror" ,rust-thiserror-1))))))
 
 (define-public rust-flate2-1
   (package



reply via email to

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