Skip to content

Commit

Permalink
Merge pull request NixOS#6812 from lovesegfault/rosetta-paths
Browse files Browse the repository at this point in the history
fix(libstore): allow Nix to access all Rosetta 2 paths on MacOS
  • Loading branch information
edolstra authored and Minion3665 committed Feb 23, 2023
2 parents ee085a1 + a3dff57 commit 028dd62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libstore/sandbox-defaults.sb
Original file line number Diff line number Diff line change
Expand Up @@ -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).
(allow file-read*
(subpath "/Library/Apple/usr/libexec/oah")
(subpath "/System/Library/Apple/usr/libexec/oah"))
(subpath "/System/Library/Apple/usr/libexec/oah")
(subpath "/System/Library/LaunchDaemons/com.apple.oahd.plist")
(subpath "/Library/Apple/System/Library/LaunchDaemons/com.apple.oahd.plist"))

0 comments on commit 028dd62

Please sign in to comment.