GNU bug report logs - #61473
Adding rust-protobuf / codegen / codegen-pure

Previous Next

Package: guix-patches;

Reported by: Steve George <steve <at> futurile.net>

Date: Mon, 13 Feb 2023 10:47:01 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Steve George <steve <at> futurile.net>
To: 61473 <at> debbugs.gnu.org
Cc: Efraim Flashner <efraim <at> flashner.co.il>, steve <at> futurile.net
Subject: [bug#61473] [PATCH 3/3] gnu: Add rust-protobuf-codegen-pure. * gnu/packages/crates-io.scm (rust-protobuf-codegen-pure): New variable.
Date: Mon, 13 Feb 2023 11:17:57 +0000
---

 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c94a62b628..5720d570d6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43198,6 +43198,29 @@ (define-public rust-protobuf-codegen-2
 invoke programmatically (e.g. from `build.rs`) and `protoc-gen-rust` binary.")
     (license license:expat)))
 
+;; It's recommended that rust-protobuf, rust-protobuf-codegen
+;; and rust-probuf-codegen-pure be the same version
+(define-public rust-protobuf-codegen-pure-2
+  (package
+    (name "rust-protobuf-codegen-pure")
+    (version "2.14.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "protobuf-codegen-pure" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0h34gfqlb7bqmgqv1mfgy5wk35z5r2h5ki3p3pdcmw1vqzmly6id"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #f
+       #:cargo-inputs (("rust-protobuf" ,rust-protobuf-2)
+                       ("rust-protobuf-codegen" ,rust-protobuf-codegen-2))))
+    (home-page "https://github.com/stepancheg/rust-protobuf/")
+    (synopsis "Pure-rust codegen for protobuf using protobuf-parser")
+    (description "Pure-rust codegen for protobuf using protobuf-parser.")
+    (license license:expat)))
+
 (define-public rust-psl-2
   (package
     (name "rust-psl")
-- 
2.39.1





This bug report was last modified 2 years and 91 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.