-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
packages: Offer more installation method suggestions and discourage nix-env -i
#508
Comments
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/depreciate-the-use-of-nix-env-to-install-packages/20139/36 |
Also I fully agree See |
Presentation of the search results is handled by a single page application written in Elm. It is already set up to display multiple tabs with an installation method in each of them. |
Ah, I missed that tab thingy. In that case, great. |
Currently the package details only suggest
nix-env
.nix-env
is considered bad practice by many, so we should at least offer better, declarative and/or non-global installation methods in the packages search details.environment.systemPackages
callPackage
pkgs
nativeBuildInputs
buildInputs
This also solves the problem in docs and conversations of having to explain the general idea of "package installation" over and over again, which involves either a roundtrip to ask what sort of installation they need (might not even be clear) or, in the case of docs, trying to explain multiple methods.
Knowing the attribute path also means that we can show relevant instructions for dealing with nested attributes in
callPackages
.Related: #506 (comment)
The text was updated successfully, but these errors were encountered: