Skip to content

macos support via sandbox-exec - #17

Closed
adrian-gierakowski wants to merge 13 commits into
srid:masterfrom
adrian-gierakowski:macos-support-via-sandbox-2
Closed

macos support via sandbox-exec#17
adrian-gierakowski wants to merge 13 commits into
srid:masterfrom
adrian-gierakowski:macos-support-via-sandbox-2

Conversation

@adrian-gierakowski

@adrian-gierakowski adrian-gierakowski commented Feb 4, 2026

Copy link
Copy Markdown
Collaborator

I made some change trying to fix tests in sandbox, but eventually hit not being able to access sandbox-exec binary itself (it's not in nixpkgs)

looks like the only way to make this work would be to use __noChroot

@srid do you have macos builder in CI?

@adrian-gierakowski
adrian-gierakowski force-pushed the macos-support-via-sandbox-2 branch from 770d2a8 to 47fb1cb Compare February 5, 2026 00:12
# Tmp support
(lib.mkIf config.features.tmp {
rw = [ "/tmp" ];
rwx = [ "/tmp" ] ++ lib.optionals isDarwin [ "/var/folders" ];

@adrian-gierakowski adrian-gierakowski Feb 5, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

hope you don't mind this change (to rwx), but I was getting error when running yarn, which runs stuff from within temp dir (probably install scripts for packages).

@srid

srid commented Feb 5, 2026

Copy link
Copy Markdown
Owner

Can you provide some context here? Does landrun run on macOS?

@adrian-gierakowski

Copy link
Copy Markdown
Collaborator Author

Can you provide some context here? Does landrun run on macOS?

No it does not, that's why this PR is using sandbox-exec, which is the closest things on MacOS. It's a tool deveploped by apple (although not officially documented) and it's used by both claude code and gemini cli .

If you are not interested in supporting MacOS and would rather prefer to keep this repo focused on landrun, I'm happy to go my own way. Personally I maintain both linux and apple systems and since I liked the interface landrun-nix provide's I thought it would be nice to use it for both platforms. If you do accept this contribution maybe we could think about renaming the project.

@srid

srid commented Feb 5, 2026

Copy link
Copy Markdown
Owner

maybe we could think about renaming the project.

I'm happy to consider this. This PR currently complects the landrun-nix and macOS stuff. So to best to do this, we need a common interface that now has two implementations which are totally separated out (different files/folders) to make maintenance easier.

@adrian-gierakowski adrian-gierakowski changed the title macos support via sandbox 2 macos support via sandbox-exec Feb 23, 2026
@adrian-gierakowski

Copy link
Copy Markdown
Collaborator Author

maybe we could think about renaming the project.

I'm happy to consider this. This PR currently complects the landrun-nix and macOS stuff. So to best to do this, we need a common interface that now has two implementations which are totally separated out (different files/folders) to make maintenance easier.

done in #18

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.

2 participants