2024-06-24 18:47:55 +00:00
|
|
|
{
|
|
|
|
fetchCrate,
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
nix-update-script,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "protoc-gen-tonic";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "0.4.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-3qz1ea9lEsZjhWNA0lcwqsPkNmjj2ZBljqNRr5/2lKM=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
cargoHash = "sha256-nUsRoDaP+omZdOTnaxvHbJT1uNGtyfgXyEFZbp/CeYA=";
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Protoc plugin that generates Tonic gRPC server and client code using the Prost code generation engine";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "protoc-gen-tonic";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/neoeinstein/protoc-gen-prost";
|
|
|
|
changelog = "https://github.com/neoeinstein/protoc-gen-prost/blob/main/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
2024-06-24 18:47:55 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
felschr
|
|
|
|
sitaaax
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|