mirror of
https://github.com/NixOS/nix
synced 2025-06-24 09:41:15 +02:00
Improve the Rosetta installation hint
The Nix daemon detects supported system types at start time, so it needs to be restarted to detect x86_64-darwin support.
This commit is contained in:
parent
d254c840b5
commit
20ba6be749
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ void DerivationBuilderImpl::startBuilder()
|
|||
|
||||
// since aarch64-darwin has Rosetta 2, this user can actually run x86_64-darwin on their hardware - we should tell them to run the command to install Darwin 2
|
||||
if (drv.platform == "x86_64-darwin" && settings.thisSystem == "aarch64-darwin")
|
||||
msg += fmt("\nNote: run `%s` to run programs for x86_64-darwin", Magenta("/usr/sbin/softwareupdate --install-rosetta"));
|
||||
msg += fmt("\nNote: run `%s` to run programs for x86_64-darwin", Magenta("/usr/sbin/softwareupdate --install-rosetta && launchctl stop org.nixos.nix-daemon"));
|
||||
|
||||
throw BuildError(msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue