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

Matthias Beyer mail at beyermatthias.de
Sun Jul 17 20:17:16 CEST 2016


No, $SHLVL indicates that I'm in a new shell, actually.

On 17-07-2016 19:50:41, Daniel Hlynskyi wrote:
> 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
> >
> >

-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160717/88e025a0/attachment-0001.sig>


More information about the nix-dev mailing list