I'm about implementing this feature.

the nproc code seems rather complex.

So my strategy now is: Keep things simple: If num_cores is not set in
nix config use try using NUM_CORES from env which can be set by nproc in
the upstart script easily.

I don't think we have to introduce yet another name such as
buildInParallel = false. So I allow setting NUM_CORES to 1 only in a
derivation:

  mkDerivation {
    NUM_CORES = 1;
  }

Ludo, thank you for this nproc tip !

For now I ignore the fact that you can put cores on and offline..

I consider this feature being experimental anyway.

Marc Weber
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to