diff --git a/pkgs/development/tools/protoc-gen-prost/default.nix b/pkgs/development/tools/protoc-gen-prost/default.nix new file mode 100644 index 000000000000..645ecdee3081 --- /dev/null +++ b/pkgs/development/tools/protoc-gen-prost/default.nix @@ -0,0 +1,25 @@ +{ fetchCrate +, lib +, rustPlatform +, protobuf +}: + +rustPlatform.buildRustPackage rec { + pname = "protoc-gen-prost"; + version = "0.2.3"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-QTt5mSUe41r2fxrgWj1l6fHC/utMVIgMi2ySsdGyl/Y="; + }; + + cargoSha256 = "sha256-ghXcyxG9zqUOFKGvUza29OgC3XiEtesqsAsfI/lFT08="; + + meta = with lib; { + description = "Protocol Buffers compiler plugin powered by Prost"; + homepage = "https://github.com/neoeinstein/protoc-gen-prost"; + changelog = "https://github.com/neoeinstein/protoc-gen-prost/blob/main/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ felschr sitaaax ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86313b938dfa..46344144e585 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -548,6 +548,8 @@ with pkgs; protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { }; + protoc-gen-prost = callPackage ../development/tools/protoc-gen-prost { }; + protoc-gen-rust = callPackage ../development/tools/protoc-gen-rust { }; protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { };