How can I determine what is causing this build to take forever

So this rebuild has been going for 5+ hours already. I think it’s chromium related but have no chrome or chromium in my packages. Is there a command to list what’s building and what it’s a dependency of?

There are probably better ways, but…

You could try looking at cat /proc/PID/cmdline and readlink /proc/PID/cwd which might give you some hints. Substitute PID for the PIDs that you see in your monitor.

Usually I can also get an idea by just doing nixos-rebuild dry-build to see what else needs to be built.

In the future, you can pipe the output of the build to nom (3rd party tool) or use nh (also 3rd-party) to build. This will tell you what is currently getting built at any given time.

1 Like