Any mutuals #nix heads?

I'm trying to setup a development environment via nix on my mac (the project uses nix for setting up the dev env) and I'm getting a strange OOM error while one dependency is trying to build. Then the rest of the build fails because that of that one dependency that fails to build.

Can't tell if this is a nix issue, a problem with this package, or some complexity of running nix-on-mac....?

https://pastebin.com/xsYaHMZ3

$ nix develop .#env-with-simerror: Cannot build '/nix/store/b1p5lrl5wghhdjzkf7 - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Pastebin
@heavyimage Nix builds can occasionally be memory hungry, and you're (presumably) not hitting an official cache here because the combinations of Python/Certifi/compiler etc. versions were never built in nixpkgs. Perhaps cut your flake down to just that one Python library, and see if you can build it in isolation.
@sanityinc Thanks for the reply. I'll try to dive in but these are unfamiliar waters. I actually submitted an issue to the project here https://github.com/lowRISC/sonata-software/issues/86 with a bit more information if you're curious. Odd that I can run the patch command manually or that patch would OOM...?!
OOM error during simulator nix environment build · Issue #86 · lowRISC/sonata-software

Hello, I'm trying to follow the instructions here to setup the simulator on my M1 macbook air. I was able to setup nix and use xmake to build all the examples just fine in the getting started guide...

GitHub
@heavyimage I just successfully fired that flake up on my M4 with 32GB. Did you allow the `extra-substituters` and `extra-trusted-public-keys` settings when prompted so that you could get things from their nix cache? If not, then that's likely the issue. But it's also possible that my machine just built some uncached stuff for which yours had insufficient memory.
@sanityinc thanks for trying this out and replying! Appreciated. This is helpful. I did set those settings correctly cause the non-simulator Nix packages downloaded instead of being compiled. I’ll try to rerun it with more stuff closed and watch my memory usage. It seems strange an OOM issue would be so deterministic though!
@sanityinc my poor gen1 M1 has only 8 GB of memory but I quit nearly everything and was watching activity monitor like a hawk. Even with 4+ GB free, with no spike in memory, it still fails with the OOM error. I feel like it must be something else but I have no idea what. I'm going to try to ask someone about this tomorrow who's involved in the project (I'm at a conference related to this now). Thanks so much for your sanity checking and input, Steve! I'll let you know if we figure it out!
@heavyimage Fingers crossed for you. I wish I'd noticed whether my machine hit their cache for everything, or had to build anything itself, but I started it off and then went for lunch. 😅