Roni Choudhury
2017-06-05 20:55:28 UTC
Hi all!
Iâm using nix-shell to do some development. I have the environment set up
so I can build my code, but I had a question about invoking packages not in
the shellâs environment. For instance, in that shell, when I run vim, I get
output like this:
vim: à ΠbÌ : x #à : Error 224711464
vim: }ÿ : xépOö : Error 1320334120
These two lines came from two different invocations - note how the output
seems to be random.
If I include vim in shell.nix, then I donât see this problem. (I donât want
to include vim in shell.nix in this case, because I donât think the choice
of editor is critical to the build environment, etc.)
My main question is: *what is causing this strange output?*
My secondary question: *how do I invoke nix-shell in such a way as to
instantiate the environment specified in shell.nix, plus a few âcustomâ
packages (such as vim)?*
I guess I should mention that my shell of choice is zsh. When I run
nix-shell I get dropped into a bash shell. From there, if I invoke zsh Iâm
back where I want to be. Could that quirk have something to do with this?
Thanks in advance!
roni
â
Iâm using nix-shell to do some development. I have the environment set up
so I can build my code, but I had a question about invoking packages not in
the shellâs environment. For instance, in that shell, when I run vim, I get
output like this:
vim: à ΠbÌ : x #à : Error 224711464
vim: }ÿ : xépOö : Error 1320334120
These two lines came from two different invocations - note how the output
seems to be random.
If I include vim in shell.nix, then I donât see this problem. (I donât want
to include vim in shell.nix in this case, because I donât think the choice
of editor is critical to the build environment, etc.)
My main question is: *what is causing this strange output?*
My secondary question: *how do I invoke nix-shell in such a way as to
instantiate the environment specified in shell.nix, plus a few âcustomâ
packages (such as vim)?*
I guess I should mention that my shell of choice is zsh. When I run
nix-shell I get dropped into a bash shell. From there, if I invoke zsh Iâm
back where I want to be. Could that quirk have something to do with this?
Thanks in advance!
roni
â