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

Jakub Konka created

Release Notes:

- N/A

Change summary

nix/build.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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";