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


Message #14 received at 61473 <at> debbugs.gnu.org (full text, mbox):

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: [PATCH 2/3] gnu: Add rust-protobuf-codegen. *
 gnu/packages/crates-io.scm (rust-protobuf-codegen): New variable.
Date: Mon, 13 Feb 2023 11:17:56 +0000
---

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cd4ca8c48d..c94a62b628 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -43174,6 +43174,30 @@ (define-public rust-protobuf-2
     (description "Library to read and write protocol buffer's data.")
     (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-2
+  (package
+    (name "rust-protobuf-codegen")
+    (version "2.14.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "protobuf-codegen" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "031bx325lsgcx7wc76vc2cqph6q0b34jgc8nz0g2rkwcfnx3n4fy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #f
+       #:cargo-inputs (("rust-protobuf" ,rust-protobuf-2))))
+    (home-page "https://github.com/stepancheg/rust-protobuf/")
+    (synopsis "Code generator for rust-protobuf")
+    (description
+     "Code generator for rust-protobuf.  Includes a library to
+invoke programmatically (e.g. from `build.rs`) and `protoc-gen-rust` binary.")
+    (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.