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/libstore/store-api.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/store-api.hh') diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 586d35e84ffd..3247a67678cf 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -495,7 +495,7 @@ public: /* Return the size of the closure of the specified path, that is, the sum of the size of the NAR serialisation of each path in the closure. */ - unsigned long long getClosureSize(const Path & storePath); + std::pair getClosureSize(const Path & storePath); /* Optimise the disk space usage of the Nix store by hard-linking files with the same contents. */ -- cgit 1.4.1