guix-commits
[Top][All Lists]
Advanced

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

16/31: gnu: Add rust-capnpc-0.19.


From: guix-commits
Subject: 16/31: gnu: Add rust-capnpc-0.19.
Date: Sun, 31 Mar 2024 14:27:54 -0400 (EDT)

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

commit 44019fb65c6194bf8dbc8bc88ae2fb5f62bef1b4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Mar 31 20:45:28 2024 +0300

    gnu: Add rust-capnpc-0.19.
    
    * gnu/packages/crates-io.scm (rust-capnpc-0.19): New variable.
    (rust-capnpc-0.13): Inherit from rust-capnpc-0.19.
    
    Change-Id: I7d866d19f0b18a1db4ff5619d3879caf54fb4cd2
---
 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 3644e87ae8..4717608255 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10842,26 +10842,43 @@ remote procedure call protocol")
        #:cargo-development-inputs
        (("rust-capnpc" ,rust-capnpc-0.13))))))
 
-(define-public rust-capnpc-0.13
+(define-public rust-capnpc-0.19
   (package
     (name "rust-capnpc")
-    (version "0.13.1")
+    (version "0.19.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "capnpc" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1hbm5xqpam3f0ha5ds39wjmpqpzdalpbrls9wlp7m3slh3p5r1c1"))))
+        (base32 "1v49w7zsv4bkdn88dfmi2hk5dzv5pgs0qwgkq99jsn081w7a6ny7"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs (("rust-capnp" ,rust-capnp-0.13))))
+     `(#:cargo-test-flags '("--release" "--"
+                            "--skip=compiler_command_new_no_out_dir")
+       #:cargo-inputs (("rust-capnp" ,rust-capnp-0.19))))
     (home-page "https://github.com/capnproto/capnproto-rust";)
     (synopsis "Cap'n Proto code generation")
-    (description "Cap'n Proto code generation")
+    (description "Cap'n Proto code generation.")
     (license license:expat)))
 
+(define-public rust-capnpc-0.13
+  (package
+    (inherit rust-capnpc-0.19)
+    (name "rust-capnpc")
+    (version "0.13.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "capnpc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1hbm5xqpam3f0ha5ds39wjmpqpzdalpbrls9wlp7m3slh3p5r1c1"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-capnp" ,rust-capnp-0.13))))))
+
 (define-public rust-caps-0.5
   (package
     (name "rust-caps")



reply via email to

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