Perhaps shell exits too soon. One way to do it explicitly, is adding [[ -n "$IN_NIX_SHELL" ]] && exit
to the top of your's ~/.bashrc, just like Bjorn said 2016-07-17 17:45 GMT+03:00 Matthias Beyer <[email protected]>: > I just verified this: > > echo $PATH | sha1sum > a439474de411c2baec5dc5fad9d9c11180c7558b > > nix-shell -p beancount # a program I do not have installed... it > # gets downloaded after I called this... > > echo $PATH | sha1sum > a439474de411c2baec5dc5fad9d9c11180c7558b > > Of course, beancount is not in scope after calling nix-shell. > > This is on: > > * System: 16.09pre85931.125ffff (Flounder) > * Nix version: nix-env (Nix) 1.11.2 > * Nixpkgs version: "16.09pre85931.125ffff" > > Should I submit this to nix/nixpkgs? > > On 11-07-2016 12:58:47, Matthias Beyer wrote: > > Nope, this is on nixos with nixos-unstable channel. > > > > On 11-07-2016 11:53:26, Bjørn Forsman wrote: > > > On Jul 11, 2016 11:26, "Matthias Beyer" <[email protected]> wrote: > > > > > > > > Hi, > > > > > > > > I'm on nixos unstable channel. I just did > > > > > > > > nix-shell -p calcurse > > > > > > > > it gives me a shell (though it keeps my prompt and doesn't override > it > > > > as I would expect with nix-shell) > > > > > > > > and calcurse is not available in the shell. > > > > > > > > Did I just ran into a bug with nix-shell? > > > > > > Is this on non-NixOS? I think I saw something about that in the nix > issue > > > tracker. Some host bashrc file is sourced and breaks nix-shell. > > > > > > - Bjørn > > > > -- > > Mit freundlichen Grüßen, > > Kind regards, > > Matthias Beyer > > > > Proudly sent with mutt. > > Happily signed with gnupg. > > > > -- > Mit freundlichen Grüßen, > Kind regards, > Matthias Beyer > > Proudly sent with mutt. > Happily signed with gnupg. > > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev > >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
