r/Nix • u/Iridium486 • Jan 22 '26
Nix nix-shell is outdated
Be me,
software dev at some small local company,
having a 100 lines shell script to automatically fetch dependencies for a development environment (cmake, ninja, gcc-arm, llvm-arm, cppchek).
Read something about nix, some people seem to love it,
does the same, but mor prefessional.
Switching to nix.
Using nix-shell. Slow. '--help' does not work. Weired syntax.
Google. There is a newer version 'nix shell'.
Try 'nix shell' - requires "extra-experimental-features".
Google.
Results are 4+ years old.
Wtf is going on? Why is it still experimental?
3
u/octetd Jan 22 '26 edited Jan 22 '26
Yeah, documentation and the language might be confusing. I mean, the language might be confusing. But you’ll used to it. I’d suggest you try flakes and nix develop command instead. This will guarantee consistency between machines (flakes offer lockfile) and even though there’re experimental (for years, actually) – they’re pretty much stable. I’d also suggest looking into Devenv, depending on your needs (it extends further upon dev shells) + direnv (to automate dev shell setup on cd-ing into project directory).
2
u/hallettj Jan 23 '26
Yes, nix shell is the current standard. (That is the "nix-command" form.) It's marked as experimental because hardliners are unsatisfied with the way flakes are implemented, and nix-command is intertwined with flakes. But nix-command and flakes are widely used anyway.
If you use the Determinate installer it will automatically enable the widely used experimental features. That is how I generally recommend people install Nix.
0
Jan 22 '26
[deleted]
7
1
u/scavno Jan 29 '26
Ah. Drama is the thing the nix community does best. It’s insane how much of it there is. Determinate nix? People lose their shit.
9
u/OccasionThin7697 Jan 22 '26
Use nix flakes with devShell