From a5961c8d45bc222844478341086339a993b82f95 Mon Sep 17 00:00:00 2001 From: jvmncs <7891333+jvmncs@users.noreply.github.com> Date: Wed, 7 Aug 2024 16:35:49 -0400 Subject: [PATCH] Point PROTOC to nixpkgs.protobuf pkg in shell.nix (#15931) This fixes an issue on NixOS where Zed's proto crate fails to build. Cargo expects to find protoc in the Cargo registry, but due to the distro's non-standard filesystem this expectation is invalid. Release Notes: - N/A --- shell.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/shell.nix b/shell.nix index be2dcb2f88..f32999356c 100644 --- a/shell.nix +++ b/shell.nix @@ -52,5 +52,6 @@ else "assets/fonts/zed-sans" ]; }; + PROTOC = "${pkgs.protobuf}/bin/protoc"; }; }