zed-editor: fix darwin build by appending buildFeatures to checkFeatures

For the same reason runtime_shaders is passed to buildFeatures, it must also be
passed to checkFeatures to avoid fallback to proprietary Metal shaders not
available in Nix sandbox.

Co-authored-by: Niklas Korz <niklas@niklaskorz.de>
This commit is contained in:
Thomas FitzGerald
2026-02-16 04:04:27 -05:00
co-authored by Niklas Korz
parent b75e144307
commit 4a37c33e29
+6 -1
View File
@@ -196,7 +196,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
# Some crates define extra types or enum values in test configuration which then lead
# to type checking errors in other crates unless this feature is enabled.
checkFeatures = [ "visual-tests" ];
# gpui/runtime_shaders is required on darwin for the same reason as buildFeatures above:
# without it, build.rs invokes the proprietary Metal shader compiler.
checkFeatures = [
"visual-tests"
]
++ finalAttrs.buildFeatures;
env = {
ALLOW_MISSING_LICENSES = true;