maralorn / nix-output-monitor

Pipe your nix-build output through the nix-output-monitor a.k.a nom to get additional information while building.
GNU Affero General Public License v3.0
841 stars 24 forks source link

FeatureRequest: Display "evaluating derivation" state #148

Open luochen1990 opened 1 week ago

luochen1990 commented 1 week ago

Evaluation stage might take 1 minute or longer, nothing displayed during this time is very confusing.

In particular, when used in this way sudo nixos-rebuild switch |& nom, I am completely unable to determine whether it is waiting for a password input or evaluating

SuperSandro2000 commented 1 week ago

You probably want to use a patch like https://github.com/NixOS/nixpkgs/commit/38291ead98c0186473aa75bc38df465851dde490 instead of piping into nom

luochen1990 commented 1 week ago

You probably want to use a patch like NixOS/nixpkgs@38291ea instead of piping into nom

I think things like nh should also inherit this feature, so it's not just about nixos-rebuild IMHO

maralorn commented 1 week ago

I think it is a valid request (no matter the specific context) and I actually had this at some point, sadly there were bugs in the implementation so I never released it.