|
|
|
|
|
by mason55
2208 days ago
|
|
> Then you can just nix-env -iA your-package. This is what always gets me stuck. It seems like lots of tutorials assume you're installing packages by hand still. For me, the whole reason I'm using nix is so that I can use the declarative package management. I get having local dev dependencies on a per-project basis and running a nix shell to make those dependencies available in your development environment. But it's just confusing to me how many tutorials suggest running nix-env -i to imperatively install a package. Why would I do that instead of taking advantage of the joys of declarative package management? |
|
So in many cases you are told to use nix-env, because the person just answered how to write a derivation and didn't go further than that.
I think flakes (still work in progress), will help here, because it defines a standard that supposed to do all of that in one file that is easily composable.