From: Steve George <steve@futurile.net>
To: 61473@debbugs.gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>, steve@futurile.net
Subject: [bug#61473] [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 [thread overview]
Message-ID: <20230213111757.692759-2-steve@futurile.net> (raw)
In-Reply-To: <20230213111757.692759-1-steve@futurile.net>
---
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
next prev parent reply other threads:[~2023-02-13 11:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 10:45 [bug#61473] Adding rust-protobuf / codegen / codegen-pure Steve George
2023-02-13 11:17 ` [bug#61473] [PATCH 1/3] gnu: Add rust-protobuf. * gnu/packages/crates-io.scm (rust-protobuf-2): New variable Steve George
2023-02-13 11:17 ` Steve George [this message]
2023-02-13 11:17 ` [bug#61473] [PATCH 3/3] gnu: Add rust-protobuf-codegen-pure. * gnu/packages/crates-io.scm (rust-protobuf-codegen-pure): " Steve George
2023-02-14 15:06 ` bug#61473: [PATCH 1/3] gnu: Add rust-protobuf Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230213111757.692759-2-steve@futurile.net \
--to=steve@futurile.net \
--cc=61473@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).