nix: Fix nix build failure due to missing `protoc` (#44412)

Cameron Mcloughlin created

Change summary

.gitignore    | 3 +++
nix/build.nix | 1 +
2 files changed, 4 insertions(+)

Detailed changes

.gitignore 🔗

@@ -39,3 +39,6 @@ xcuserdata/
 # Don't commit any secrets to the repo.
 .env
 .env.secret.toml
+
+# `nix build` output
+/result 

nix/build.nix 🔗

@@ -177,6 +177,7 @@ let
         ZED_UPDATE_EXPLANATION = "Zed has been installed using Nix. Auto-updates have thus been disabled.";
         RELEASE_VERSION = version;
         LK_CUSTOM_WEBRTC = livekit-libwebrtc;
+        PROTOC="${protobuf}/bin/protoc";
 
         CARGO_PROFILE = profile;
         # need to handle some profiles specially https://github.com/rust-lang/cargo/issues/11053