Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for rosetta 2 support before installing x86_64-darwin Nix #4305

Merged
merged 3 commits into from Dec 7, 2020

Conversation

matthewbauer
Copy link
Member

Check for "rosetta 2" on ARM64 macOS first. Otherwise, installation will fail with:

Bad CPU type in executable

when running nix-store during later installation. This should be a safe check, but will need someone without rosetta 2 to verify this works as expected first (I've now installed it after setting up my new system).

gnu-config standardized on aarch64 for machine name so host_cpu part
of $system will always be aarch64. That means system will be
aarch64-darwin too.

uname however could report either “aarch64” (if gnu coreutils) or
“arm64” (if apple’s uname). We should support both for compatiblity
here.
@matthewbauer matthewbauer changed the title Check for rosetta 2 support before installing Check for rosetta 2 support before installing x86_64-darwin Nix Dec 3, 2020
@Kloenk
Copy link
Member

Kloenk commented Dec 4, 2020

Apple put my m1 mbp in the Post today. Will test before installing.

@Kloenk
Copy link
Member

Kloenk commented Dec 7, 2020

Yes, the com.apple.oahd.plist does not exists on a new mbp m1.

I just did ls on that path, but either ways, LGTM

@edolstra edolstra merged commit 97dc44f into NixOS:master Dec 7, 2020
@edolstra
Copy link
Member

edolstra commented Dec 7, 2020

Thanks, merged!

@abathur
Copy link
Member

abathur commented Dec 9, 2020

I've opened a PR on my fork at abathur#1 to hopefully bait some discussion about whether or not the installer should install rosetta automatically (and how).

@domenkozar
Copy link
Member

@matthewbauer would be great if you open a PR against 2.3-maintenance so that we get this out in Nix 2.3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants