summary refs log tree commit diff
path: root/pkgs/build-support/closure-info.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/closure-info.nix')
-rw-r--r--pkgs/build-support/closure-info.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/closure-info.nix b/pkgs/build-support/closure-info.nix
index 54b1fe59b66d..96c37bccf2e9 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
     '';