2022-08-12 12:06:08 +00:00
|
|
|
{ fetchCrate
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "protoc-gen-rust";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "3.5.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit version;
|
|
|
|
pname = "protobuf-codegen";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-yGZ4auZHGtcsN6n4/FEzabsSXproyhNTJHIwujt7ijg=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
cargoHash = "sha256-RO3kVYkvHw8kwLaRfANtGtz88knjJ8HtmU3i0xgIDMY=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = ["--bin" pname];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ protobuf ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Protobuf plugin for generating Rust code";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "protoc-gen-rust";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/stepancheg/rust-protobuf";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lucperkins ];
|
|
|
|
};
|
|
|
|
}
|