Open matthew-piziak opened 5 years ago
As of nix 2.3 nix build -L
already has this feature, so adding this to nix-build seems reasonable? Also https://github.com/NixOS/nixpkgs/pull/45919 (closed but using nix build
would get you scoped logs with nixpkgs today) and/or https://github.com/NixOS/nixpkgs/issues/54188 may be relevant.
bonus round (don't actually do this?):
nix run -I nixos-config=/etc/nixos/configuration.nix -Lf '<nixpkgs/nixos>' system -c switch-to-configuration switch
-L
option available to nix-build
I marked this as stale due to inactivity. → More info
I closed this issue due to inactivity. → More info
When I run
nixos-rebuild switch
, sometimes I get a lot of logs. It is not obvious which derivations these come from.When a job fails it's usually possible to figure out which package is responsible, but it's much harder to figure out why a particular build is taking so long. It's also hard to debug a build when logs from multiple jobs are interleaved.
Something like this on the other hand…
…would be more comfortable.