Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge #56201: add nix-env.qaCountBroken metric

... into release-19.03. (Cherry-picked from 35cf2c82c1.)
The branch is affected by the stdenv change differentiating the numbers,
and I believe consistency with master will be good here.

+4
+4
pkgs/top-level/metrics.nix
··· 52 52 run nix-env.qa nix-env -f ${nixpkgs} -qa 53 53 run nix-env.qaDrv nix-env -f ${nixpkgs} -qa --drv-path --meta --xml 54 54 55 + # It's slightly unclear which of the set to track: qaCount, qaCountDrv, qaCountBroken. 55 56 num=$(nix-env -f ${nixpkgs} -qa | wc -l) 56 57 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 57 61 58 62 # TODO: this has been ignored for some time 59 63 # GC Warning: Bad initial heap size 128k - ignoring it.