[Nix-dev] garbage collecting source (was: btrfs-progs (was:contributing to nixpkgs/nixos))
Florian Friesdorf
flo at chaoflow.net
Tue Dec 20 12:05:00 CET 2011
On Tue, 20 Dec 2011 08:27:16 +0400, Michael Raskin <7c6f434c at mail.ru> wrote:
>
> >> Hm, sorry, piled too much into one line
> >>
> >> nix-store -r $(nix-instanctiate /etc/nixos/nixos -A system)
> >
> >For me that just prints the path to the system derivation - does that
> >mean that everything is instantiated?
>
> Ah, that's what I missed.
>
> nix-store -qR $(nix-instantiate /etc/nixos/nixos -A system) | xargs nix-store -r
I added it to the FAQ:
https://nixos.org/wiki/FAQ#How_to_keep_build-time_dependencies_around_.2F_be_able_to_rebuild_while_being_offline
In the manpage of nix-store I found '--include-outputs' and am not fully
sure about its effect. By diffing I found that it mostly lists tarballs
in the store and I assume I do not need to realise them explicitly as
they are realised by realising the closure's paths and kept by having
gc-keep-outputs - correct? Nomenclature violated?
> I just use nix-reduce build and so I sometimes forget what Nix commands
> are actually used.
What is nix-reduce / how do I get it and more information about it? I
found some references to it, but it's not in my path and grep/find on
/etc/nixos also did not reveal it.
Thx a lot - already very happy over here!
--
Florian Friesdorf <flo at chaoflow.net>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20111220/23769c6c/attachment.bin
More information about the nix-dev
mailing list