-
Notifications
You must be signed in to change notification settings - Fork 150
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
readme(nix): Don't recommend nix-env -iA
#506
base: main
Are you sure you want to change the base?
Conversation
But this is in the case that installing a package installs other dependent packages, which may overwrite (and change versions of) those packages right? In our case, we're just installing one binary. |
Trying to install it:
although
works, perhaps something changed
|
works |
also |
@worldmind would you be able to consult on what the best option is for the readme? I don't have the time to understand the quirks of a new distro right now. A PR would of course be best, or you can format it as you would here in thread in markdown and i can apply it. |
Sorry, but I am afraid I know nothing, I installed nix on Ubuntu just for install zk, and can't say I got what is the right way, somehow I found working way and decided to not go deeper as for now I am not sure I will use
and after executing:
it works. |
Nix is specifically designed to avoid the problem of dependency hell. This is never an issue when using Nix. Nix is a complex beast, with a package management system that looks alien compared to other package managers. A comment on a Github issue is a poor place to explain all that is Nix, so I'll try to provide a short summary of Nix here, and just the parts that are immediately relevant to this issue. One of the primary points of Nix is declarative package management and configuration. Whereas with other package managers the way to install something would be a shell command, e.g. However, Nix also provides several other ways to "install" a package. This is where Nix (and NixOS) configurations can get highly customized. Installation instructions necessarily have to assume the user has some basic Nix knowledge. I recommend these lines in the section for Nix in the readme: Nix
If you want to run
Or, if you want to create an ephemeral shell with
To permanently install
If you are using Home Manager, you can permanently install and configure
|
Perfect. Thank you for the concise explanation and the text, which I think is perfect 👌 @srid , can you update the pr with the above? |
https://stop-using-nix-env.privatevoid.net/