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

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

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

lovesegfault
Copy link
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
Member Author

It will need to be backported to 2.10

@centromere
Copy link
Member

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

@github-actions
Copy link

Successfully created backport PR #6819 for 2.10-maintenance.

@@ -98,7 +98,9 @@
(allow file*
(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
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