diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-02-23 17:02:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 17:02:33 +0100 |
commit | 8c6f9223d02c5123cbd364d6d56caca3c81416f0 (patch) | |
tree | 6d8b8462e3fdadd3d984c6dfa07f536f6a865a2c /pkgs/build-support | |
parent | 776a5e6ebfacc6831527bc6c3c1a58ef2087c819 (diff) | |
parent | adf8074abeed31453739dcecdd4f4a32c8c53eb6 (diff) |
Merge pull request #35402 from shlevy/closure-info-total-size
closureInfo: Report the total closure size.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/closure-info.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/closure-info.nix b/pkgs/build-support/closure-info.nix index 25978e974cf58..2154432b7e0af 100644 --- a/pkgs/build-support/closure-info.nix +++ b/pkgs/build-support/closure-info.nix @@ -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 ''; |