lol
at 23.05-pre 29 lines 663 B view raw
1{ fetchCrate 2, lib 3, rustPlatform 4, protobuf 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "protoc-gen-rust"; 9 version = "3.1.0"; 10 11 src = fetchCrate { 12 inherit version; 13 pname = "protobuf-codegen"; 14 sha256 = "sha256-DaydUuENqmN812BgQmpewRPhkq9lT6+g+VPuytLc25Y="; 15 }; 16 17 cargoSha256 = "sha256-kzc2Wd+Y3mNmOHxRj5R1LIbvXz5NyGcRnz2e0jdfdPg="; 18 19 cargoBuildFlags = ["--bin" pname]; 20 21 nativeBuildInputs = [ protobuf ]; 22 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 }; 29}