[Nix-dev] Getting the size of a store path + depths

Eelco Dolstra e.dolstra at tudelft.nl
Wed Jan 20 21:56:25 CET 2010


Hi,

Michael Raskin wrote:

> Lluís Batlle wrote:
>> some days ago niksnut talked about "the size of the stdenv closure".
>> How can I get the size of a closure, containing all its dependencies?
>> I have not found any easy way, and I imagine there may be such.
> 
> nix-store -qR /nix/store/path | xargs du -s | cut -f 1 | xargs | sed -e
> 's/ /+/' | bc

Even simpler: du -sch $(nix-store -qR $path)

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list