[Nix-dev] nix-shell does not work???
Matthias Beyer
mail at beyermatthias.de
Mon Jul 18 13:30:52 CEST 2016
FYI: I just reported this here:
https://github.com/NixOS/nix/issues/976
On 17-07-2016 20:17:16, Matthias Beyer wrote:
> 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.
> _______________________________________________
> 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/20160718/125afdf0/attachment.sig>
More information about the nix-dev
mailing list