protoc-gen-{tonic,prost{,-serde,-crate}}: add update scripts

This commit is contained in:
Felix Schröter 2024-06-22 14:57:55 +02:00
parent 518778a5e3
commit efee88f382
No known key found for this signature in database
GPG Key ID: 671E39E6744C807D
4 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,7 @@
fetchCrate,
lib,
rustPlatform,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -15,6 +16,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-dcKJRX/iHIWEmBD2nTMyQozxld8b7dhxxB85quPUysg=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Protoc plugin that generates Cargo crates and include files for `protoc-gen-prost`";
mainProgram = "protoc-gen-prost-crate";

View File

@ -2,6 +2,7 @@
fetchCrate,
lib,
rustPlatform,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -15,6 +16,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-l27+Rs4TYIJXZVLj7Tjw8M5+7ivWEY0TXbLtbuzwxLw=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Protoc plugin that generates serde serialization implementations for `protoc-gen-prost`";
mainProgram = "protoc-gen-prost-serde";

View File

@ -2,6 +2,7 @@
fetchCrate,
lib,
rustPlatform,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -15,6 +16,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-ghXcyxG9zqUOFKGvUza29OgC3XiEtesqsAsfI/lFT08=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Protocol Buffers compiler plugin powered by Prost";
mainProgram = "protoc-gen-prost";

View File

@ -2,6 +2,7 @@
fetchCrate,
lib,
rustPlatform,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@ -15,6 +16,8 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-FrkvL/uJitMkSyOytVSmlwr26yMVM12S2n+EaSw11CE=";
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Protoc plugin that generates Tonic gRPC server and client code using the Prost code generation engine";
mainProgram = "protoc-gen-tonic";