-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-env
selecting old channels in ~/.nix-defexpr
#1067
Comments
you may be interested in #993 |
I have experienced this as well. This makes the expectation that nix-env using fail when you don't realise that a rogue channel is left in the channels directory. clever helped me on the IRC channel to remove my rogue channel: |
I marked this as stale due to inactivity. → More info |
I have extracted this in a separate documentation issue at: #5710 |
I marked this as stale due to inactivity. → More info |
I have a colleague who had the following issue on OS X:
They ran roughly the following sequence of commands:
... which left them with a
~/.nix-defexpr/channels
directory that looks like this:$ ls ~/.nix-defexpr/channels/ binary-caches/ manifest.nix nixos-16.09/ nixpkgs/
... where the
nixos-16.09
directory is still left behind after--remove
ing the channel and--update
.Whenever they run
nix-env
to install something,nix-env
uses~/.nix-defexpr/nixos-16.09
as the path for the base set of expressions instead ofnixpkgs
like my colleague intended.The documentation from
nix-env
says thatnix-env
uses the contents of~/.nix-defexpr
as the default path, but:~/.nix-defexpr/channels
nix-env
use theNIX_PATH
environment variable (which was correctly configured in my colleague's case)?The text was updated successfully, but these errors were encountered: