Merge pull request #35402 from shlevy/closure-info-total-size
closureInfo: Report the total closure size.
This commit is contained in:
commit
8c6f9223d0
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user