Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Cameron Mcloughlin18421845eb7d
diff --git a/.gitignore b/.gitignore
index 2a91a65b6ea..ccf4f471d5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,3 +39,6 @@ xcuserdata/
# Don't commit any secrets to the repo.
.env
.env.secret.toml
+
+# `nix build` output
+/result
diff --git a/nix/build.nix b/nix/build.nix
index 9012a47c1fa..484049a421f 100644
--- a/nix/build.nix
+++ b/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