News for hackers. Stuff that matters.
Re:NixOS 21.05 by lpmay on Wednesday June 02, 2021 @10:31PM (#27376613)
Just a hint - extra attributes in the `mkShell` appear as environment variables in the built shell. So instead of a `shellHook` for this you can just have an attribute `ERL_LIBS="";`

I'm not completely sure but I think this approach is preferred because shellHook only runs in `nix-shell` but if you ever wanted to `nix-build` a release it might not run.

Re:NixOS 21.05 by takeda on Thursday June 03, 2021 @03:58AM (#27378384)
There tools like direnv, that "enter" your env environment as soon as you cd to the directory. This is implemented by changing environment variables like PATH.

Because shellHook allows on executing any code, there's no standardized way to undo what it executes, so those tools don't execute that part.