El 20 de gener de 2010 21:56, Eelco Dolstra <[email protected]> ha escrit: > 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) Ahhh! "print all paths necessary to realise the path". I thought this had to do with build time dependencies somehow. Clear!
Thank you! (Michael, thanks for the tip on doing the addition. I once made a program that adds all the numbers taken into stdin, and that is what I used until this. ) _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
