[Nix-dev] nix-shell does not work???

Daniel Hlynskyi abcz2.uprola at gmail.com
Sun Jul 17 18:50:41 CEST 2016


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 <mail at beyermatthias.de>:

> 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" <mail at beyermatthias.de> 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
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160717/dd1666bd/attachment.html>


More information about the nix-dev mailing list