Merge pull request #35402 from shlevy/closure-info-total-size

closureInfo: Report the total closure size.
This commit is contained in:
Eelco Dolstra 2018-02-23 17:02:33 +01:00 committed by GitHub
commit 8c6f9223d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';