diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-07-14T15·36+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-07-14T16·29+0200 |
commit | 766ad5db3b2e8678b649375e59191978671c821e (patch) | |
tree | d5721aa938edbd907102f0bc43e3547e01fdbb7a /src/nix | |
parent | fdc9da034fd7e0cb9c5275209d991ed6ca38f1cc (diff) |
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 } ]
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/path-info.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc index f7610ab0814d..ca02a4c929be 100644 --- a/src/nix/path-info.cc +++ b/src/nix/path-info.cc @@ -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'; |