3
0
Fork 0
forked from mirrors/nixpkgs

metrics.nix: add a metrick for the current number of packages as seen by nix-env

This commit is contained in:
Jan Malakhovski 2018-08-18 16:38:14 +00:00
parent 26cce54d88
commit 9d35a02dab

View file

@ -49,6 +49,9 @@ runCommand "nixpkgs-metrics"
run nix-env.qa nix-env -f ${nixpkgs} -qa
run nix-env.qaDrv nix-env -f ${nixpkgs} -qa --drv-path --meta --xml
num=$(nix-env -f ${nixpkgs} -qa | wc -l)
echo "nix-env.qaCount $num" >> $out/nix-support/hydra-metrics
export GC_INITIAL_HEAP_SIZE=128k
run nix-env.qaAggressive nix-env -f ${nixpkgs} -qa
run nix-env.qaDrvAggressive nix-env -f ${nixpkgs} -qa --drv-path --meta --xml