Commit efd21ac0 authored by Michal Trybus's avatar Michal Trybus
Browse files

protols: fix well-known types/imports support

Use a new feature of protols-0.13.1 to set a fallback well-known *.proto
files path to protobuf's include directory.
parent 2c020238
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
{
  lib,
  protobuf,
  rustPlatform,
  fetchFromGitHub,
}:
@@ -17,6 +18,8 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-q3GMizdBupQSMVCuRqLjuw0Mof1q3UYOdUBugmrTDMU=";

  env.FALLBACK_INCLUDE_PATH = "${protobuf}/include";

  meta = {
    description = "Protocol Buffers language server written in Rust";
    homepage = "https://github.com/coder3101/protols";