nix
Nix hydraByte 10 months ago 100%
When to use nix build vs nix shell vs nix develop vs nix run?

Hey Nix friends! I’ve been working on learning the basics of Nix for awhile now, in particular focusing on flakes. One of the things that still eludes me is the different use cases for the main flake commands. When would you use `nix build` vs `nix shell` vs `nix develop` vs `nix run`? What are the strengths and weaknesses of each? So far, I feel like nix develop is the command I am most familiar with from setting up my development environment on a web app, but I’d really like to understand all of them better.

5
1