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
kernel: enableParallelBuilding now effective #31887
Conversation
Why don't you set Nix build cores to zero in your Nix config? |
I haven't set it but previously it was using only -j1. Do you mean that if nix.buildCores is not set in configuration.nix, nixos assumes -j1 ? Seems confirmed with
I didn't check further because the pb looked similar to #25208 |
I just tried with nix.buildCores set to 4 on nixos-unstable within a nix-shell and I don't know why but it dosn't work I get during the buildPhase: EDIT: I guess it has to export NIX_BUILD_CORES else it will default to one. |
You have to perform |
I had done it. |
Please confirm that |
arf seems like I had interrupted the rebuild because of a wrong channel my bad sorry. It works. I'll ditch the first commit, Is the 2nd commit of interest ? |
Yes, please do. |
Now prints the current modDirVersion.
Done manually. |
Motivation for this change
I need to build kernels faster
Things done
Improves error message.
If enableParallelBuilding, set NIX_BUILD_CORES to 0 so that the builder guesses the correct value to use.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)