Nix build progress bar meaning

Hi,
I’ve been using nix with flakes for quite a while now, and it occurred to me that I actually don’t know what the numbers reported in the progress bar of nix build actually mean.

It’s not hard to deduce from 4/128/486 that there are 486 remaining to build, but it’s less clear what the 4 and 128 mean - why are there two numbers?

5 Likes

I think 4 is how many are building rn (can be configured with --max-jobs). And the 128 is how many you built since running the command.

3 Likes

Thanks! A sort of related follow up question - is there a way of expanding this progress bar to print out more of the build logs as they are generated. It’s nice to see more information for long builds

Yes, pass the -L / --print-build-logs flag.

2 Likes