protoc-gen-rust: init at 3.1.0

This commit is contained in:
Luc Perkins 2022-07-30 11:55:05 +02:00
parent 86029a016d
commit ea836299d6
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ fetchCrate
, lib
, rustPlatform
, protobuf
}:
rustPlatform.buildRustPackage rec {
pname = "protoc-gen-rust";
version = "3.1.0";
src = fetchCrate {
inherit version;
pname = "protobuf-codegen";
sha256 = "sha256-DaydUuENqmN812BgQmpewRPhkq9lT6+g+VPuytLc25Y=";
};
cargoSha256 = "sha256-kzc2Wd+Y3mNmOHxRj5R1LIbvXz5NyGcRnz2e0jdfdPg=";
cargoBuildFlags = ["--bin" pname];
nativeBuildInputs = [ protobuf ];
meta = with lib; {
description = "Protobuf plugin for generating Rust code";
homepage = "https://github.com/stepancheg/rust-protobuf";
license = licenses.mit;
maintainers = with maintainers; [ lucperkins ];
};
}

View file

@ -482,6 +482,8 @@ with pkgs;
protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { };
protoc-gen-rust = callPackage ../development/tools/protoc-gen-rust { };
protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { };
protoc-gen-twirp_php = callPackage ../development/tools/protoc-gen-twirp_php { };