user2236: I'm trying to get the exercises for week 1 of the plutus pioneer program working. I've installed nix and have set the IOHK caches.
When I try to run nix build -f default.nix plutus.haskell.packages.plutus-core in the plutus repo I get the following error:
 ❮❮❮ nix build -f default.nix plutus.haskell.packages.plutus-core
trace: To materialize project.plan-nix for Agda entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
builder for '/nix/store/gpkkaj0mcs6wxaknfjm0jh389x8l4gwb-plutus-core-0.1.0.0-coverage-report.drv' failed with exit code 65; last 1 log lines:
  sandbox-exec: pattern serialization length 71571 exceeds maximum (65535)
[0 built (1 failed), 0.0 MiB DL]

I'm running this command on commit ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4.
I've looked through the plutus community docs but haven't found any mention of this error.
Has anyone run into this before? What does this mean? Is there a known fix?
EDIT: this also happens on master at commit 8ce0d58c0a169f4c8a1104757502f342e750c863

user4012: I found this /etc/nix/nix.conf to work for my macOS i7 Monterey (v12.1).
It was recommended to turn the sandbox FALSE because 'not recommended' per Ref #1 below.
    build-users-group = nixbld
    
    substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
    trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=volume
    
    sandbox = false
    extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env
    experimental-features = nix-command
    extra-experimental-features = flakes

References:

CSE, @angerman, on macOS Monterey i7, what is the best nix.conf file to use?
Github: Status of macOS support in Nixpkgs

https://github.com/Til-D/cardano-plutus
https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md


2236: <p>I'm trying to get the exercises for week 1 of the plutus pioneer program working. I've installed nix and have set the IOHK caches.</p>
<p>When I try to run <code>nix build -f default.nix plutus.haskell.packages.plutus-core</code> in the plutus repo I get the following error:</p>
<pre><code> ❮❮❮ nix build -f default.nix plutus.haskell.packages.plutus-core
trace: To materialize project.plan-nix for Agda entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
builder for '/nix/store/gpkkaj0mcs6wxaknfjm0jh389x8l4gwb-plutus-core-0.1.0.0-coverage-report.drv' failed with exit code 65; last 1 log lines:
  sandbox-exec: pattern serialization length 71571 exceeds maximum (65535)
[0 built (1 failed), 0.0 MiB DL]
</code></pre>
<p>I'm running this command on commit <code>ea0ca4e9f9821a9dbfc5255fa0f42b6f2b3887c4</code>.</p>
<p>I've looked through the <a href="https://docs.plutus-community.com/" rel="nofollow noreferrer">plutus community docs</a> but haven't found any mention of this error.</p>
<p>Has anyone run into this before? What does this mean? Is there a known fix?</p>
<p>EDIT: this also happens on <code>master</code> at commit <code>8ce0d58c0a169f4c8a1104757502f342e750c863</code></p>
 4012: <p>I found this <code>/etc/nix/nix.conf</code> to work for my macOS i7 Monterey (v12.1).</p>
<p>It was recommended to turn the sandbox FALSE because 'not recommended' per Ref #1 below.</p>
<pre><code>    build-users-group = nixbld
    
    substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
    trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=volume
    
    sandbox = false
    extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env
    experimental-features = nix-command
    extra-experimental-features = flakes
</code></pre>
<p>References:</p>
<ol>
<li><a href="https://cardano.stackexchange.com/a/6701/4012">CSE, @angerman, on macOS Monterey i7, what is the best <code>nix.conf</code> file to use?</a></li>
<li><a href="https://github.com/NixOS/nixpkgs/issues/116341" rel="nofollow noreferrer">Github: Status of macOS support in Nixpkgs
</a></li>
<li><a href="https://github.com/Til-D/cardano-plutus" rel="nofollow noreferrer">https://github.com/Til-D/cardano-plutus</a></li>
<li><a href="https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md" rel="nofollow noreferrer">https://github.com/renzwo/cardano-plutus-apps-install-m1/blob/main/README.md</a></li>
</ol>
