depot/third_party/nixpkgs/pkgs/development/tools/protoc-gen-rust/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

29 lines
663 B
Nix

{ 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 ];
};
}