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

prefmanager fails to install with sandbox mode enabled #2

Closed
montchr opened this issue Dec 26, 2021 · 2 comments
Closed

prefmanager fails to install with sandbox mode enabled #2

montchr opened this issue Dec 26, 2021 · 2 comments

Comments

@montchr
Copy link

montchr commented Dec 26, 2021

Hi @malob – thanks for your excellent work on https://github.com/malob/nixpkgs – I've borrowed some ideas and snippets in my own config. That's how I came across prefmanager.

However, I haven't been able to install prefmanager on my Intel MBP via environment.systemPackages or as a user package with nix.useSandbox set to true (the default on NixOS, FWIW). After I rebuild with nix.useSandbox = false; I'm able to install prefmanager successfully.

This looks like an instance of NixOS/nix#4119 – though I'm not sure what to suggest. Aside from prefmanager, I haven't run into any issues with sandbox mode, which I've had enabled for a while now.

Each time I build my flake-based system configuration I receive the following error:

building '/nix/store/yg5d4940nq5xqnnrn7nvlmid440p265k-darwin-system-21.11.20211220.df6791e+darwin4.a2ed0b0.drv'...
error: builder for '/nix/store/yg5d4940nq5xqnnrn7nvlmid440p265k-darwin-system-21.11.20211220.df6791e+darwin4.a2ed0b0.drv' failed with exit code 65;
       last 1 log lines:
       > sandbox-exec: pattern serialization length 66284 exceeds maximum (65535)
       For full logs, run 'nix log /nix/store/yg5d4940nq5xqnnrn7nvlmid440p265k-darwin-system-21.11.20211220.df6791e+darwin4.a2ed0b0.drv'.

Unfortunately, there's nothing else in the log.

@montchr montchr changed the title prefmanager incompatible with nix sandbox mode prefmanager fails to install with sandbox mode enabled Dec 26, 2021
@malob
Copy link
Owner

malob commented Jan 10, 2022

Thanks for the heads up. I’ll try and find some time to tinker with sandboxing and see if I can figure out what the issue is.

@malob
Copy link
Owner

malob commented Jun 29, 2023

Sorry for taking so long to come around to looking into this.

I just ran nix build --option sandbox true and didn't have any build issues.

Maybe something got resolved upstream with Nix?

@malob malob closed this as completed Jul 10, 2023
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

No branches or pull requests

2 participants