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

See: https://nodejs.org/en/about/releases/

* nodePackages: stick to nodejs-14_x while node2nix is broken on 16.x

authored by Ivan Babrou and committed by GitHub 4c60ee3d 4ff2a239

+6 -3
+6 -3
pkgs/top-level/all-packages.nix
··· 7117 7117 7118 7118 nixnote2 = libsForQt514.callPackage ../applications/misc/nixnote2 { }; 7119 7119 7120 - nodejs = hiPrio nodejs-14_x; 7120 + nodejs = hiPrio nodejs-16_x; 7121 7121 7122 - nodejs-slim = nodejs-slim-14_x; 7122 + nodejs-slim = nodejs-slim-16_x; 7123 7123 7124 7124 7125 7125 nodejs-10_x = callPackage ../development/web/nodejs/v10.nix { ··· 7152 7152 7153 7153 nodePackages_latest = dontRecurseIntoAttrs nodejs_latest.pkgs; 7154 7154 7155 - nodePackages = dontRecurseIntoAttrs nodejs.pkgs; 7155 + nodePackages = (dontRecurseIntoAttrs nodejs.pkgs).override { 7156 + # It does not work on 16.x: https://github.com/NixOS/nixpkgs/issues/132456 7157 + nodejs = nodejs-14_x; 7158 + }; 7156 7159 7157 7160 np2kai = callPackage ../misc/emulators/np2kai { }; 7158 7161