Hacker News new | ask | show | jobs
by Aleksdev 1540 days ago
Looks cool! However it appears to have a bit of a learning curve to get up and running.

Are there any other advantages to using nix?

3 comments

Yes! You can swoop into any thread discussing other packaging / build tools, and recommend nix, immediately sidelining any conversation about the original topic.
Nice! Can’t wait to do that
In the end you could use nix to build docker/VM images and use the same, reproducible environment in prod/test/CI/dev/...
> Are there any other advantages to using nix?

The advantages are more pronounced for DevOps than for developers.

e.g. for DevOps, Nix allows copying a package of software (and all its dependencies) from one computer to another, with confidence that the programs will work on both machines.

For developers, Nix is more appealing if you ever work on more than one computer. e.g. with Nix, it's easy to ensure you've got the same version of packages installed regardless of whether you're on macOS or Linux.

It's pretty neat for side projects, in order to get "I was able to build it now, I'll be able to build it in 6 months". Whereas, if you're otherwise relying on Ubuntu's system packages, maybe the package versions got updated, and so you'll need to spend time to get your program to work with the latest compiler/libraries.