nix path-info: Show download sizes for binary cache stores
E.g. $ nix path-info --json --store https://cache.nixos.org nixpkgs.thunderbird -S ... "downloadHash": "sha256:1jlixpzi225wwa0f4xdrwrqgi47ip1qpj9p06fyxxg07sfmyi4q0", "downloadSize": 43047620, "closureDownloadSize": 84745960 } ]
This commit is contained in:
parent
fdc9da034f
commit
766ad5db3b
3 changed files with 30 additions and 9 deletions
|
|
@ -84,7 +84,7 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
|
|||
std::cout << '\t' << std::setw(11) << info->narSize;
|
||||
|
||||
if (showClosureSize)
|
||||
std::cout << '\t' << std::setw(11) << store->getClosureSize(storePath);
|
||||
std::cout << '\t' << std::setw(11) << store->getClosureSize(storePath).first;
|
||||
|
||||
if (showSigs) {
|
||||
std::cout << '\t';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue