mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
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
|
@ -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<uint64_t, uint64_t> getClosureSize(const Path & storePath);
|
||||
|
||||
/* Optimise the disk space usage of the Nix store by hard-linking files
|
||||
with the same contents. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue