[Nix-dev] weird garbage output inside nix-shell

Linus acc at sphalerite.org
Sun Jun 11 13:14:10 CEST 2017


>> I kind of thought I shouldn't even be able to launch vim from inside
>> my shell if it's not listed as a buildDep.
>
>It looks to me that nix-shell _extends_ the environment it is run in.
>So, if you run nix-shell in an environment which contains vim, you have
>vim inside nix-shell.

Correct — unless you use the --pure option in which case the environment is cleared before adding the build inputs.


More information about the nix-dev mailing list