nix: Correctly handle commitSha == null in nix devshell (#51319)

Release Notes:

- N/A
This commit is contained in:
Jakub Konka authored and GitHub committed 2026-03-11 18:48:12 +00:00
1 parent 2a54d21219
commit abb29dbe62
1 file changed
+1 -1
+1 -1
View File
@@ -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";