Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / protoc-gen-rust / default.nix
blob7a1dcb4b3e48df8f3d8a22b8fe94f50bc05cdfbd
1 { fetchCrate
2 , lib
3 , rustPlatform
4 , protobuf
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "protoc-gen-rust";
9   version = "3.2.0";
11   src = fetchCrate {
12     inherit version;
13     pname = "protobuf-codegen";
14     sha256 = "sha256-9Rf7GI/qxoqlISD169TJwUVAdJn8TpxTXDNxiQra2UY=";
15   };
17   cargoSha256 = "sha256-i1ZIEbU6tw7xA1w+ffD/h1HIkOwVep9wQJys9Bydvv0=";
19   cargoBuildFlags = ["--bin" pname];
21   nativeBuildInputs = [ protobuf ];
23   meta = with lib; {
24     description = "Protobuf plugin for generating Rust code";
25     homepage = "https://github.com/stepancheg/rust-protobuf";
26     license = licenses.mit;
27     maintainers = with maintainers; [ lucperkins ];
28   };