2022-08-12 12:06:08 +00:00
|
|
|
{ fetchCrate
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "protoc-gen-rust";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.2.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
pname = "protobuf-codegen";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-9Rf7GI/qxoqlISD169TJwUVAdJn8TpxTXDNxiQra2UY=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoSha256 = "sha256-i1ZIEbU6tw7xA1w+ffD/h1HIkOwVep9wQJys9Bydvv0=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|