Hello, I initially reported this issue in the nh issue tracker (link: nix-community/nh#223) but was redirected here as it appears to be a NOM bug.
When a build error occurs using nh, I've observed that the error message is printed twice in the output. The same build configuration produces only a single error message when using nixos-build.

Steps to reproduce:
- Using a flake configuration that triggers a build error
- Running the build with nh
- Running the same build with
nixos-build
Expected behavior:
Error messages should be displayed once, similar to nixos-build
Actual behavior:
The exact error message appears twice in the output when using nh
Additional context:
- I've observed this behavior across multiple flakes, including my own and two other flakes from different repositories, suggesting this isn't specific to my configuration.
- If this is unexpected behavior, I can provide my flake configuration for further investigation.
Thanks!