Skip to content

Commit

Permalink
Merge pull request NixOS#35402 from shlevy/closure-info-total-size
Browse files Browse the repository at this point in the history
closureInfo: Report the total closure size.
  • Loading branch information
edolstra authored Feb 23, 2018
2 parents 776a5e6 + adf8074 commit 8c6f922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/build-support/closure-info.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ stdenv.mkDerivation {
mkdir $out
jq -r ".closure | map(.narSize) | add" < .attrs.json > $out/total-nar-size
jq -r '.closure | map([.path, .narHash, .narSize, "", (.references | length)] + .references) | add | map("\(.)\n") | add' < .attrs.json | head -n -1 > $out/registration
jq -r .closure[].path < .attrs.json > $out/store-paths
'';
Expand Down

0 comments on commit 8c6f922

Please sign in to comment.