How can I quickly get the failing build log associated to a broken package?

Hi all,

I frequently encounter trivially broken packages on nixpkgs. I usually rebuild them with NIXPKGS_ALLOW_BROKEN=1 and then fix them based on the error message that I see. But presumably this error message already exists somewhere, e.g. on hydra, when the build was originally flagged as broken. Is there a quick way to get it? Could the link to the failing build log be displayed directly in the broken package message that Nix emits? I have the feeling that this would greatly encourage me to fix trivially broken packages because I could recognize them instantly as such.

The build logs should be available on hydra, however hydra doesn’t build everything and there are other ways packages can be broken, apart from show stopping build errors.