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

Recommend 'sandbox=relaxed' #55

Closed
wants to merge 1 commit into from

Conversation

alexfmpe
Copy link
Contributor

@alexfmpe alexfmpe commented Jun 3, 2018

sandbox = true is failing for mac os nix builds.

@ryantrinkle
Copy link
Member

@alexfmpe Has it been tested that this doesn't break #6?

@alexfmpe
Copy link
Contributor Author

alexfmpe commented Jun 3, 2018

Not yet

@ryantrinkle
Copy link
Member

ryantrinkle commented Jun 3, 2018 via email

@ali-abrar
Copy link
Member

What does "relaxed" actually do? Sorry if I missed the explanation somewhere.

@alexfmpe
Copy link
Contributor Author

alexfmpe commented Jun 7, 2018

From the manual:

If this option is set to relaxed, then fixed-output derivations and derivations that have the __noChroot attribute set to true do not run in sandboxes.

We might have to change some things to allow running with relaxed though.
On macOS sandbox=false works while relaxed yields

$ nix-build -A ios.frontend -o result-ios --check
checking outputs of '/nix/store/xk4xhclhj6hf0z5nkfr5m32h3xwjb0hj-frontend-app.drv'...
++ mkdir -p /nix/store/6x98v2381hgdi8nwl8rf72k9hjmkbz3v-frontend-app/frontend.app
++ ln -s /nix/store/3g3557wcabdwafpkz4k3gcpfj86wr17n-Info.plist /nix/store/6x98v2381hgdi8nwl8rf72k9hjmkbz3v-frontend-app/frontend.app/Info.plist
ln: failed to create symbolic link '/nix/store/6x98v2381hgdi8nwl8rf72k9hjmkbz3v-frontend-app/frontend.app/Info.plist': File exists

@hSloan hSloan added the bug fix A pull request that fixes an existing bug label Jan 22, 2019
@alexfmpe
Copy link
Contributor Author

#83 dealt with this

@alexfmpe alexfmpe closed this Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix A pull request that fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants