Skip to content

fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS#6812

Merged
edolstra merged 1 commit intoNixOS:masterfrom
lovesegfault:rosetta-paths
Jul 18, 2022
Merged

fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS#6812
edolstra merged 1 commit intoNixOS:masterfrom
lovesegfault:rosetta-paths

Conversation

@lovesegfault
Copy link
Copy Markdown
Member

Release Notes

Fixes: #5884

I cherry-picked this from @centromere's tree, hopefully they're alright with
that.

This allows building nix and cachix on macOS with sandboxing enabled, among
other packages.

@lovesegfault
Copy link
Copy Markdown
Member Author

It will need to be backported to 2.10

@centromere
Copy link
Copy Markdown
Member

Looks like I neglected to open a PR. Thank you @lovesegfault!

@github-actions
Copy link
Copy Markdown

Successfully created backport PR #6819 for 2.10-maintenance.

(literal "/private/var/select/sh"))

; Allow Rosetta 2 to run x86_64 binaries on aarch64-darwin.
; Allow Rosetta 2 to run x86_64 binaries on aarch64-darwin (and vice versa).
Copy link
Copy Markdown
Member

@winterqt winterqt Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and vice versa)

Rosetta 2 can't be run on x86_64 systems, maybe this comment should be updated to be more detailed as to what that entails? My only guess is that we want to enable checking if Rosetta is installed on both x86_64 and aarch64, so the comment should probably reflect that.

Minion3665 pushed a commit to Minion3665/nix that referenced this pull request Feb 23, 2023
fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macos Nix on macOS, aka OS X, aka darwin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invoking nix in a derivation's build script violates the macOS sandbox in Nix 2.4 and later

4 participants