Every time I enter nix-shell
, I need to execute the following command, otherwise nix-build
and other nix-*
commands are not found.
source /home/xxx/.nix-profile/etc/profile.d/nix.sh
I have added the following into file ~/.profile
, but it does not seem to be working.
if [ -e /home/xxx/.nix-profile/etc/profile.d/nix.sh ]; then source /home/xxx/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
What's the reason for that? How can I get source /home/xxx/.nix-profile/etc/profile.d/nix.sh
automatically when I run nix-shell
?
nix-shell
would know how to set your profile. So what you are saying is it works in your regular shell, but fails innix-shell
. Can you please provide more info around the context? What system do you run on, ...?shell.nix
from plutus-apps, should I change the this file somehow?plutus-apps
for plutus pioneer program.