mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-15 20:00:19 +00:00
Crystal runs CPU detection to figure out worker count if not explicitly set. This detection code has a bug and errors on machines with >= 128 CPUs, since it uses an 8 bit integer for counting CPUs. Large CPU counts do work if the CPU detection code is skipped. This sets CRYSTAL_WORKERS to NIX_BUILD_CORES to avoid the CPU detection code. Assisted-by: Codex (GPT-5.6 Sol)