News for hackers. Stuff that matters.
Re:Show HN: Nixhub.io – Search Historical Versions of Nix Pa... by Alifatisk on Monday July 17, 2023 @03:14PM (#36762661)
I am currently using asdf, is there anything Nix does better than asdf?
Re:Show HN: Nixhub.io – Search Historical Versions of Nix Pa... by jljljl on Monday July 17, 2023 @03:22PM (#36762737)
Two benefits to Nix that I can think of:

1. It has a wider range of packages available vs asdf. Asdf can support runtimes that have an asdf plugin, whereas Nix has over 80,000 packages available in it's registry

2. Nix also handles the dependencies for the packages you want to install. If you runtime requires a compiler, specific libraries, etc, Nix will ensure those are installed.

Of course, Nix can be challenging to get started with. If you want to try Nix but find the language intimidating, you can try something like Devbox first.

Re:Show HN: Nixhub.io – Search Historical Versions of Nix Pa... by rgoulter on Monday July 17, 2023 @11:00PM (#36767291)
Nix is a much more general purpose tool than asdf.

Nix can also be used to build Docker images, VM images, or configure a NixOS system. Nix's packages can also be run without being installed.

Specifically for setting up a development environment? As sibling pointed out, nix shells can provide native libraries.

With nix shell, it's also possible to have the shell be strictly 'pure', in that the shell's environment will only be what's declared in the Nix shell. Having that ensures that you're not relying on environment variables you set elsewhere, or stuff you installed elsewhere.