mirror of
https://github.com/NixOS/nix
synced 2025-06-24 13:51:16 +02:00
Merge pull request #13378 from NixOS/improve-rosetta-hint
Improve the Rosetta installation hint
This commit is contained in:
commit
aa1629ca35
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
|
// 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")
|
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);
|
throw BuildError(msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue