1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00
nix/tests
DavHau fb5e22e318 build-cores: detect cores automatically if set to 0
This changes makes nix detect a machines available cores automatically whenever build-cores is set to 0.

So far, nix simply passed NIX_BUILD_CORES=0 whenever build-cores is set to 0. (only when build-cores is unset it was detecting cores automatically)

The behavior of passing NIX_BUILD_CORES=0 leads to a performance penalty when sourcing nixpkgs' generic builder's `setup.sh`, as setup.sh has to execute `nproc`. This significantly slows down sourcing of setup.sh
2025-07-07 10:33:42 +07:00
..
functional build-cores: detect cores automatically if set to 0 2025-07-07 10:33:42 +07:00
installer Format .nix files 2025-01-24 17:04:02 +01:00
nixos Disallow the build directory having world-writable parents 2025-06-22 16:49:44 +02:00
repl-completion.nix Format .nix files 2025-01-24 17:04:02 +01:00