protoc-gen-rust: init at 3.1.0
This commit is contained in:
parent
86029a016d
commit
ea836299d6
2 changed files with 31 additions and 0 deletions
29
pkgs/development/tools/protoc-gen-rust/default.nix
Normal file
29
pkgs/development/tools/protoc-gen-rust/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue