maintainers/scripts/test-configuration.nix: warn about broken pkgs

The warnings help when removing the broken flags when all packages turn
out to build and could also be helpful when investigating failures.
This commit is contained in:
sternenseemann 2021-12-15 11:21:57 +01:00 committed by sterni
parent 78c71274a3
commit 65de104e6c

View file

@ -98,7 +98,10 @@ let
# overlays. For common, nix, darwin etc. only the derivation from the default
# package set will be emitted.
packages = builtins.filter (v:
v != null && (skipEvalErrors -> (builtins.tryEval (v.outPath or v)).success)
lib.warnIf (v.meta.broken or false) "${v.pname} is marked as broken" (
v != null
&& (skipEvalErrors -> (builtins.tryEval (v.outPath or v)).success)
)
) (
lib.concatMap (fileName:
let