nodejs: switch from 14.x to 16.x to keep up with the lts release#142915
nodejs: switch from 14.x to 16.x to keep up with the lts release#142915happysalada merged 2 commits intoNixOS:stagingfrom
Conversation
|
@marsam you might be interested by this. |
|
Unfortunately, we can't upgrade to 16.x because we are blocked by node2nix #132456 |
|
Could we just use node_14 with all the node2nix packages ? |
|
@happysalada I like your suggestion, so I added a commit. Let me know if that's what you had in mind. |
|
That is what I had in mind. |
|
It's been fixed for node2nix: svanderburg/node2nix@e73c616 |
|
We could do an unstable release of node2nix, but I feel it's better to keep what we have and change when node2nix makes a new release. |
|
#144627 (comment) mentions that the branch off happened already. Is it time to revisit this? |
|
btw, there is an update in progress of node2nix https://github.com/NixOS/nixpkgs/pull/146440/files |
b829b27 to
471e817
Compare
|
Rebased |
|
I just noticed, node16 fails to build on aarch64-darwin. @marsam is this normal or is this just a transitive failure ? (no worries if you don't know). Given that nixos supports darwin on tier1, we can't just merge this then ? (let me know if I'm wrong). |
|
@bobrik thanks for checking this out. Let's merge then. |
|
This PR cause this regression #152745 As far as I know we still lack support for nodejs 16 in node2nix which makes me wonder - What was tested before merge here? I have a feeling there might be more things broken at the moment. |
Fixes regression caused by
4c60ee3 (pull: NixOS#142915)
following patch of nodePackages using nodejs-14_x
2c3b3e6 (pull: NixOS#149120)
- clenups and updates in generate-node-packages.sh
- specify nodejs version in default.nix
This makes elmPackages.* build with nodejs-14
which resolves the issue with npm installation failing
|
I thought the latest version of node2nix supports node 16 (version 1.10). There is a current PR to regenerate and test nodePackages #146440 (still WIP). and those work like a charm. |
don't worry about that. It's intentionally designed in a way it doesn't block work on other parts of nixpkgs. I'm happy to take care of it. That's being said I think there might be other packages which rely on expressions produced by node2nix using Anyway I think we can deal with all the potential issues if there are any. |
|
To clarify. I think that if intention of this PR was to update nodejs version things defined within In order to update nodejs version for things that use node2nix we need to wait for support upstream. Current highest version node2nix supports is 14. However this should update nodejs for derivations that don't depend on node2nix (don't use npm dependecies, just node). |
Fixes regression caused by
4c60ee3 (pull: NixOS#142915)
following patch of nodePackages using nodejs-14_x
2c3b3e6 (pull: NixOS#149120)
- clenups and updates in generate-node-packages.sh
- specify nodejs version in default.nix
This makes elmPackages.* build with nodejs-14
which resolves the issue with npm installation failing
(cherry picked from commit 26b74d2)
Motivation for this change
See: https://nodejs.org/en/about/releases/
It's also the only version that works properly on aarch64-darwin.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)