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
{{ message }}
Repository navigation
--run-env puts my ~/.nix-profile/bin in PATH first? #124
That is: my nix profile's bin directory appears first in my path, before the directories of my explicitly specified dependencies. Therefore my own version of node (in this case) takes precedence over the one I specified in my build file. That doesn't shouldn't be the case right?
In the comment it says it's useful to still have the current programs in $PATH be available, and I agree, but perhaps the PATH generated from the expression should be prepended to the user's one somehow?
my $envCommand = "p=\$PATH; source \$stdenv/setup; PATH=\$PATH:\$p; exec $shell";
I.e. the user's $PATH is saved to $p, then appended to the new $PATH. This works for me. Maybe you're adding ~/.nix-profile/bin to $PATH in ~/.bashrc rather than ~/.bash_profile?
Activity
zefhemel commentedon May 29, 2013
It looks like this issue arises from here: https://github.com/NixOS/nix/blob/master/scripts/nix-build.in#L176
In the comment it says it's useful to still have the current programs in $PATH be available, and I agree, but perhaps the PATH generated from the expression should be prepended to the user's one somehow?
edolstra commentedon May 29, 2013
It is prepended:
I.e. the user's $PATH is saved to $p, then appended to the new $PATH. This works for me. Maybe you're adding ~/.nix-profile/bin to $PATH in ~/.bashrc rather than ~/.bash_profile?
zefhemel commentedon May 29, 2013
Heh, indeed when I remove my ~/.bashrc (which I wasn't even aware I had), the issue is fixed. Thanks! Closing.
Merge pull request NixOS#124 from nix-dot-dev/dependabot/pip/sphinx-3…
diagnose duplicated attrs at correct path
Merge pull request NixOS#124 from DeterminateSystems/sync-2.29.1
doc/inventory: 20 GREEN+YELLOW candidates landed + 4-pass review
doc/inventory: add FOLLOWUPS ledger for the holistic-review pass
doc/inventory: Batches E + F — strike off compound-win cleanups + ver…
libutil/sync: drop SyncBase template, define Sync and SharedSync dire…
doc/inventory: revoke libstore cross-shard commits + file NixOS#239/N…