[Nix-dev] nix-shell and persistent environment
Philipp Steinpaß
philipp at xndr.de
Fri Sep 30 15:44:15 CEST 2016
-----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-----
More information about the nix-dev
mailing list