@@ -52,8 +52,12 @@ runCommand "nixpkgs-metrics"
5252 run nix-env.qa nix-env -f ${nixpkgs} -qa
5353 run nix-env.qaDrv nix-env -f ${nixpkgs} -qa --drv-path --meta --xml
5454
55+ # It's slightly unclear which of the set to track: qaCount, qaCountDrv, qaCountBroken.
5556 num=$(nix-env -f ${nixpkgs} -qa | wc -l)
5657 echo "nix-env.qaCount $num" >> $out/nix-support/hydra-metrics
58+ qaCountDrv=$(nix-env -f ${nixpkgs} -qa --drv-path | wc -l)
59+ num=$((num - $qaCountDrv))
60+ echo "nix-env.qaCountBroken $num" >> $out/nix-support/hydra-metrics
5761
5862 # TODO: this has been ignored for some time
5963 # GC Warning: Bad initial heap size 128k - ignoring it.