[Nix-dev] What happens to nix-shell packages on GC run?

Domen Kožar domen at dev.si
Fri Oct 16 10:45:21 CEST 2015


Yes. Check `nix-store --gc --print-roots` to see what roots GC respects.

On Fri, Oct 16, 2015 at 10:41 AM, Matthias Beyer <mail at beyermatthias.de>
wrote:

> Oh, yes, nice!
>
> I assume that I can remove persistent environments by removing the
> .drv file, then?
>
> On 16-10-2015 10:38:54, Domen Kožar wrote:
> >
> https://nixos.org/wiki/Development_Environments#Making_a_Persistent_nix-shell_Environment
> >
> > On Fri, Oct 16, 2015 at 10:26 AM, Matthias Beyer <mail at beyermatthias.de>
> > wrote:
> >
> > > Hi,
> > >
> > > what happens to nix-shells if I run nix-collect-garbage?
> > >
> > > For example:
> > >
> > >     nix-shell -p racket
> > >
> > > another terminal:
> > >
> > >     nix-collect-garbage
> > >
> > > is racket now gone in the nix-shell environment or does nix
> > > "magically" find out that this package is in use and doesn't remove
> > > it?
> > >
> > > --
> > > Mit freundlichen Grüßen,
> > > Kind regards,
> > > Matthias Beyer
> > >
> > > Proudly sent with mutt.
> > > Happily signed with gnupg.
> > >
> > > _______________________________________________
> > > nix-dev mailing list
> > > nix-dev at lists.science.uu.nl
> > > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> > >
> > >
>
> --
> Mit freundlichen Grüßen,
> Kind regards,
> Matthias Beyer
>
> Proudly sent with mutt.
> Happily signed with gnupg.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151016/c37e7a27/attachment-0001.html 


More information about the nix-dev mailing list