diff options
| author | Johannes Klein <johannes@kle1n.com> | 2023-07-14 18:56:08 +0200 |
|---|---|---|
| committer | Johannes Klein <johannes@kle1n.com> | 2023-07-14 18:56:08 +0200 |
| commit | 8104326ce6281b363f7d54b57710a05a97cefd28 (patch) | |
| tree | 0992287b50f62372d9562ff51b7bd5f2bca0d8b3 | |
| parent | protoc-gen-prost: init at 0.2.3 (diff) | |
| download | nixpkgs-8104326ce6281b363f7d54b57710a05a97cefd28.tar.gz | |
protoc-gen-prost-crate: init at 0.3.1
| -rw-r--r-- | pkgs/development/tools/protoc-gen-prost-crate/default.nix | 25 | ||||
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/protoc-gen-prost-crate/default.nix b/pkgs/development/tools/protoc-gen-prost-crate/default.nix new file mode 100644 index 000000000000..8503e9266944 --- /dev/null +++ b/pkgs/development/tools/protoc-gen-prost-crate/default.nix @@ -0,0 +1,25 @@ +{ fetchCrate +, lib +, rustPlatform +, protobuf +}: + +rustPlatform.buildRustPackage rec { + pname = "protoc-gen-prost-crate"; + version = "0.3.1"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-MtGeU2PnVYPXb3nly2UaryjmjMz1lxcvYDjFiwf58FA="; + }; + + cargoSha256 = "sha256-dcKJRX/iHIWEmBD2nTMyQozxld8b7dhxxB85quPUysg="; + + meta = with lib; { + description = "A protoc plugin that generates Cargo crates and include files for `protoc-gen-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 46344144e585..dafad66ea641 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -550,6 +550,8 @@ with pkgs; protoc-gen-prost = callPackage ../development/tools/protoc-gen-prost { }; + protoc-gen-prost-crate = callPackage ../development/tools/protoc-gen-prost-crate { }; + protoc-gen-rust = callPackage ../development/tools/protoc-gen-rust { }; protoc-gen-twirp = callPackage ../development/tools/protoc-gen-twirp { }; |
