From c597e026873894d69e3661d4a335f7321c8841e7 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Tue, 28 Nov 2023 21:09:23 +0300 Subject: [PATCH] protoc-gen-rust-grpc: init at 0.8.3 --- .../pr/protoc-gen-rust-grpc/package.nix | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pkgs/by-name/pr/protoc-gen-rust-grpc/package.nix diff --git a/pkgs/by-name/pr/protoc-gen-rust-grpc/package.nix b/pkgs/by-name/pr/protoc-gen-rust-grpc/package.nix new file mode 100644 index 000000000000..3aefd22b8c67 --- /dev/null +++ b/pkgs/by-name/pr/protoc-gen-rust-grpc/package.nix @@ -0,0 +1,22 @@ +{ fetchCrate, lib, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "protoc-gen-rust-grpc"; + version = "0.8.3"; + + src = fetchCrate { + pname = "grpc-compiler"; + inherit version; + hash = "sha256-gt+Qa68N5EkqhCAvU2ISvVPT9vYPXMySad4DCyTVHkQ="; + }; + + cargoHash = "sha256-08xEPc1GaRIYLbIlSRpfBvSQcs16vduJ7v/NDg7Awfs="; + + meta = with lib; { + description = "Protobuf plugin for generating Rust code for gRPC"; + homepage = "https://github.com/stepancheg/grpc-rust"; + license = licenses.mit; + maintainers = with maintainers; [ lucperkins ]; + mainProgram = "protoc-gen-rust-grpc"; + }; +}