3 ms·
> sounds like it's using the apt-get version of node which is usually out of date It’s using the Nixpkgs version, which unfortunately depends on which nixpkgs
by akho 4y ago
> sounds like it's using the apt-get version of node which is usually out of date
It’s using the Nixpkgs version, which unfortunately depends on which nixpkgs channel you’re on. There’s a `nodejs_latest` attribute, which is actually latest (18.2.0 right now), as well as `nodejs-12_x` or somesuch for past major versions (where required by other nixpkgs packages). Plain `nodejs` should be the LTS version.
> This completely ignores the fact that my various projects requires specific versions of node
Nix allows you to pin either nixpkgs or a particular package with commit-level granularity. I’m not sure this sort of video is the right place to introduce that.
- akavel 4y agoNotably, with Nix Flakes, everything managed by Nix gets automatically 100% precisely pinned to specific versions by hash.
- asiachick 4y agowould have been all that hard for the video to show node-12.x instead of nodejs? I would have clearly shown choosing a version instead of wrongly showing bad unreproducible practices that makes anyone paying attention question if the devs actually get what they're doing