Point PROTOC to nixpkgs.protobuf pkg in shell.nix (#15931)

jvmncs created

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

Change summary

shell.nix | 1 +
1 file changed, 1 insertion(+)

Detailed changes

shell.nix 🔗

@@ -52,5 +52,6 @@ else
           "assets/fonts/zed-sans"
         ];
       };
+      PROTOC = "${pkgs.protobuf}/bin/protoc";
     };
   }