Skip to content

aarch64-darwin: Improve error message when trying to do a x86_64-darwin build and Rosetta is not installed #12323

Open
@edolstra

Description

Is your feature request related to a problem?

Currently you just get

% nix build nix#hydraJobs.build.nix-functional-tests.x86_64-darwin
error: a 'x86_64-darwin' with features {} is required to build '/nix/store/07c6yy8wamq9707ja3bvdr60kjhaxli3-nix-2.26.0pre20250121_b8c296f.drv', but I am a 'aarch64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}

Proposed solution

Ideally it would tell you to run /usr/sbin/softwareupdate --install-rosetta --agree-to-license to enable x86_64-darwin support.

Alternative solutions

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    error-messagesConfusing messages and better diagnosticsfeatureFeature request or proposalgood first issueQuick win for first-time contributorsmacosNix on macOS, aka OS X, aka darwin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions