You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not yet seen any subsequent errors because of this, but it seems that some logic is not executed correctly while making the packages available.
Once the shell is started, lsd is on my PATH and the alias works as intended.
I don't get any error messages with nix-shell --pure -p pkgs.wrapGAppsHook.
I suspect nix-shell sources .bashrc too early or in a context where it doesn't make sense during some hook evaluation. Otherwise I would have reported this bug in the nixpkgs repo. Please correct me if I'm wrong.
I should add that I don't know if it actually makes sense to include this hook in my shell.nix. I did it because it is in the nativeBuildInputs of catfish nixpkg, which I wanted to compile myself. But if such hooks don't make sense in a nix-shell, another error message should be produced.
Steps To Reproduce
$ nix-env -iA nixos.lsd
$ echo'alias ls="lsd --color=auto"'>>~/.bashrc
$ nix-shell -p pkgs.wrapGAppsHook
Hi from .bashrc
The program 'lsd' is not in your PATH. You can make it available in an
ephemeral shell by typing:
nix-shell -p lsd
The program 'lsd' is not in your PATH. You can make it available in an
ephemeral shell by typing:
nix-shell -p lsd
nix-shell$ ls --version
lsd 0.23.1
Expected behavior
No error messages.
Additional context
$ nix-env --version
nix-env (Nix) 2.11.1
The text was updated successfully, but these errors were encountered:
Describe the bug
I have the following alias in my
.bashrc
:I get the following error message "The program 'lsd' is not in your PATH" when starting a
nix-shell
withpkgs.wrapGAppsHook
.I get the error message one more time with
xfce.xfconf
in conjunction withpkgs.wrapGAppsHook
.But no error message with
xfce.catfish
on its own.This also happens with the following
shell.nix
:I have not yet seen any subsequent errors because of this, but it seems that some logic is not executed correctly while making the packages available.
Once the shell is started,
lsd
is on myPATH
and the alias works as intended.I don't get any error messages with
nix-shell --pure -p pkgs.wrapGAppsHook
.I suspect
nix-shell
sources.bashrc
too early or in a context where it doesn't make sense during some hook evaluation. Otherwise I would have reported this bug in thenixpkgs
repo. Please correct me if I'm wrong.I should add that I don't know if it actually makes sense to include this hook in my
shell.nix
. I did it because it is in thenativeBuildInputs
of catfish nixpkg, which I wanted to compile myself. But if such hooks don't make sense in anix-shell
, another error message should be produced.Steps To Reproduce
Expected behavior
No error messages.
Additional context
The text was updated successfully, but these errors were encountered: