From 766ad5db3b2e8678b649375e59191978671c821e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Jul 2017 17:36:49 +0200 Subject: 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 } ] --- src/nix/path-info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nix') 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'; -- cgit 1.4.1