Unverified Commit 4a37c33e authored by Thomas FitzGerald's avatar Thomas FitzGerald
Browse files

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: default avatarNiklas Korz <niklas@niklaskorz.de>
parent b75e1443
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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;