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: Correctly handle commitSha == null in nix devshell (#51319)

Jakub Konka546dacc29bf9
diff --git a/nix/build.nix b/nix/build.nix
index d96a7e51ca0..a5ced61bbbf 100644
--- a/nix/build.nix
+++ b/nix/build.nix
@@ -224,7 +224,7 @@ let
};
ZED_UPDATE_EXPLANATION = "Zed has been installed using Nix. Auto-updates have thus been disabled.";
RELEASE_VERSION = version;
- ZED_COMMIT_SHA = commitSha;
+ ZED_COMMIT_SHA = lib.optionalString (commitSha != null) "${commitSha}";
LK_CUSTOM_WEBRTC = pkgs.callPackage ./livekit-libwebrtc/package.nix { };
PROTOC = "${protobuf}/bin/protoc";