[Nix-dev] nix-shell and persistent environment

Daniel Hlynskyi abcz2.uprola at gmail.com
Sat Oct 1 09:03:09 CEST 2016


To complete previous answer.

I create a separate directory .nix-gc-roots, because nix-shell produces
many roots. Also, I haven't found yet a way to get nix root for nixpkgs
imported as external derivation, so after garbage collect I still have to
redownload some sources

30 вер. 2016 4:44 пп "Philipp Steinpaß" <philipp at xndr.de> пише:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On Fri, Sep 30, 2016 at 10:30:27AM -0300, Ruben Astudillo wrote:
> > hi
> >
> > nix-shell is great, but when I update the nixpkgs or nix-collect-garbage
> > I lose the cache of those packages. I've thinking on do a special profile
> > that I could switch to per shell instance with nix-{shell,env}, but I
> > also found references to a deprecated buildEnv function for this. What is
> > the common alternative for this?
> >
> The old wiki has a guide for that.
> https://nixos.org/wiki/Development_Environments#
> Making_a_Persistent_nix-shell_Environment
>
> Philipp
> -----BEGIN PGP SIGNATURE-----
>
> iQGcBAEBCAAGBQJX7mwsAAoJENe9N53GUHbvaK4L/An67zN4X+rIdvSGGe014KcR
> ImGU4CNKE7QQectbpwXrXZaoWmD4vQHCDCTo/YchdANZmUvhvNUYAg2mjYsGlmyu
> pFont8PwT0QuObp1ngPjBb6/fFGEnqQV1gLvxvuv92THTe2pWYN2guC15c4DR/Oc
> EVvs9wr1BlMAUwTU3K0eD8/4ZGuMVZgI4TycGg3lnCp2JGziftXmrW7kluXglqKl
> e5CpiqLufPmUwd7VAPsYDEZsZ2+/1uWwZ8SsZHI9bfGxgWnUp0Yxp5cL6vm4Xu88
> cjYWhzVVPwImQfxq/scR5Xs4NR44tBiveG6Zt+H3qrzynisza6A/Kz2RyIs++OML
> pfMWSX58YvaICV/uOvzCQIjsHGLlEChdijrJUNbYMXQIIZyrJPFlHR8//Hsy//lG
> 9Z+MGpYdQtJvN3IXN2vVqITWY9OBOA02re1LQHlaA82o32tPO9vTJ99c/b7QVgPm
> m4l+6rfQEIL+1mG56Et5ftixpAY4XxlLQ2Queq41Wg==
> =sE0b
> -----END PGP SIGNATURE-----
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161001/96b70873/attachment.html>


More information about the nix-dev mailing list