devshell icon indicating copy to clipboard operation
devshell copied to clipboard

When used in conjunction with nix-direnv, build dependencies are not protected from garbage collection.

Open reedrw opened this issue 4 years ago • 1 comments

Normally, when I use mkShell, nix-direnv will symlink the resulting derivation into gcroots, preventing it from being garbage collected, but this functionality seems to be absent when using devshell.

reedrw avatar Feb 02 '21 19:02 reedrw

I had a quick look at the implementation but it's hard to know what didn't work. The pinning logic over here should work all of the same: https://github.com/nix-community/nix-direnv/blob/52996098653a97b2ed2dbcccb191e9ed38505a47/direnvrc#L199

zimbatm avatar Feb 03 '21 07:02 zimbatm