diff --git a/scripts/create-report.sh b/scripts/create-report.sh index 795f676..628e024 100755 --- a/scripts/create-report.sh +++ b/scripts/create-report.sh @@ -45,7 +45,7 @@ pkgs_json() { log "Building $package" path=$(nix build --print-out-paths ".#$package") log "Calculating size of $package at $path" - nix path-info --closure-size --json "$path" | + nix path-info --closure-size --json "$path" | tee | jq --compact-output --arg pkg "$package" '.[] | {"name": $pkg, "size": .closureSize, "narSize": .narSize}' done endgroup