Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
714 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
fetchCrate,
lib,
rustPlatform,
protobuf,
}:
rustPlatform.buildRustPackage rec {
pname = "protoc-gen-rust";
version = "3.5.0";
src = fetchCrate {
inherit version;
pname = "protobuf-codegen";
hash = "sha256-yGZ4auZHGtcsN6n4/FEzabsSXproyhNTJHIwujt7ijg=";
};
cargoHash = "sha256-cj+/X3soc//lMOmBjfjQT+QhY/EWP92gChiDQ7b2fsM=";
cargoBuildFlags = [
"--bin"
pname
];
nativeBuildInputs = [ protobuf ];
meta = with lib; {
description = "Protobuf plugin for generating Rust code";
mainProgram = "protoc-gen-rust";
homepage = "https://github.com/stepancheg/rust-protobuf";
license = licenses.mit;
maintainers = with maintainers; [ lucperkins ];
};
}