nodejs_latest: 23.11.0 -> 24.0.0-rc.2

+18 -14
+2
doc/release-notes/rl-2505.section.md
··· 185 186 - `mkBinaryCache` now defaults to using `zstd` compression for the binary caches it creates. The previous `xz` compression method can be used by passing `compression = "xz";`. 187 188 - `nodePackages."@commitlint/config-conventional"` has been removed, as it is a library, and projects should depend on it instead. 189 190 - zigbee2mqtt is now available in version 2.x as `zigbee2mqtt_2`. In NixOS 25.11 we'll remove `zigbee2mqtt_1` and default to `zigbee2mqtt_2`. See the [breaking changes](https://github.com/Koenkk/zigbee2mqtt/discussions/24198) announcement for 2.0.0.
··· 185 186 - `mkBinaryCache` now defaults to using `zstd` compression for the binary caches it creates. The previous `xz` compression method can be used by passing `compression = "xz";`. 187 188 + - `nodejs_latest` was updated from 23.x to 24.x. `nodejs_23` has been removed in favor of `nodejs_24`. 189 + 190 - `nodePackages."@commitlint/config-conventional"` has been removed, as it is a library, and projects should depend on it instead. 191 192 - zigbee2mqtt is now available in version 2.x as `zigbee2mqtt_2`. In NixOS 25.11 we'll remove `zigbee2mqtt_1` and default to `zigbee2mqtt_2`. See the [breaking changes](https://github.com/Koenkk/zigbee2mqtt/discussions/24198) announcement for 2.0.0.
+3 -3
pkgs/by-name/ta/tailwindcss-language-server/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 - nodejs_23, 6 pnpm_9, 7 cacert, 8 }: ··· 33 }; 34 35 nativeBuildInputs = [ 36 - nodejs_23 37 pnpm_9.configHook 38 ]; 39 40 buildInputs = [ 41 - nodejs_23 42 ]; 43 44 pnpmWorkspaces = [ "@tailwindcss/language-server..." ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + nodejs_latest, 6 pnpm_9, 7 cacert, 8 }: ··· 33 }; 34 35 nativeBuildInputs = [ 36 + nodejs_latest 37 pnpm_9.configHook 38 ]; 39 40 buildInputs = [ 41 + nodejs_latest 42 ]; 43 44 pnpmWorkspaces = [ "@tailwindcss/language-server..." ];
+1 -1
pkgs/by-name/wi/windsurf/update/update.mts
··· 1 #!/usr/bin/env nix-shell 2 /* 3 - #!nix-shell -i node --pure --packages cacert nodejs_23 4 */ 5 import * as assert from "node:assert/strict"; 6 import * as fsPromises from "node:fs/promises";
··· 1 #!/usr/bin/env nix-shell 2 /* 3 + #!nix-shell -i node --pure --packages cacert nodejs_latest 4 */ 5 import * as assert from "node:assert/strict"; 6 import * as fsPromises from "node:fs/promises";
+4 -2
pkgs/development/web/nodejs/nodejs.nix
··· 176 done 177 ''; 178 179 package = stdenv.mkDerivation ( 180 finalAttrs: 181 let ··· 188 inherit pname version; 189 190 src = fetchurl { 191 - url = "https://nodejs.org/dist/v${version}/node-v${version}.tar.xz"; 192 inherit sha256; 193 }; 194 ··· 519 passthru.tests = { 520 version = testers.testVersion { 521 package = self; 522 - version = "v${version}"; 523 }; 524 }; 525
··· 176 done 177 ''; 178 179 + downloadDir = if lib.strings.hasInfix "-rc." version then "download/rc" else "dist"; 180 + 181 package = stdenv.mkDerivation ( 182 finalAttrs: 183 let ··· 190 inherit pname version; 191 192 src = fetchurl { 193 + url = "https://nodejs.org/${downloadDir}/v${version}/node-v${version}.tar.xz"; 194 inherit sha256; 195 }; 196 ··· 521 passthru.tests = { 522 version = testers.testVersion { 523 package = self; 524 + version = "v${lib.head (lib.strings.splitString "-rc." version)}"; 525 }; 526 }; 527
+2 -2
pkgs/development/web/nodejs/v23.nix pkgs/development/web/nodejs/v24.nix
··· 17 in 18 buildNodejs { 19 inherit enableNpm; 20 - version = "23.11.0"; 21 - sha256 = "f2c5db21fc5d3c3d78c7e8823bff770cef0da8078c3b5ac4fa6d17d5a41be99d"; 22 patches = 23 ( 24 if (stdenv.hostPlatform.emulatorAvailable buildPackages) then
··· 17 in 18 buildNodejs { 19 inherit enableNpm; 20 + version = "24.0.0-rc.2"; 21 + sha256 = "729fca42bb7266031dd020f3935423ea8d4b4e2d119b34b608f1d079e5c1621a"; 22 patches = 23 ( 24 if (stdenv.hostPlatform.emulatorAvailable buildPackages) then
+6 -6
pkgs/top-level/all-packages.nix
··· 4209 nodejs-slim_22 = callPackage ../development/web/nodejs/v22.nix { enableNpm = false; }; 4210 corepack_22 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_22; }); 4211 4212 - nodejs_23 = callPackage ../development/web/nodejs/v23.nix { }; 4213 - nodejs-slim_23 = callPackage ../development/web/nodejs/v23.nix { enableNpm = false; }; 4214 - corepack_23 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_23; }); 4215 4216 # Update this when adding the newest nodejs major version! 4217 - nodejs_latest = nodejs_23; 4218 - nodejs-slim_latest = nodejs-slim_23; 4219 - corepack_latest = hiPrio corepack_23; 4220 4221 buildNpmPackage = callPackage ../build-support/node/build-npm-package { }; 4222
··· 4209 nodejs-slim_22 = callPackage ../development/web/nodejs/v22.nix { enableNpm = false; }; 4210 corepack_22 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_22; }); 4211 4212 + nodejs_24 = callPackage ../development/web/nodejs/v24.nix { }; 4213 + nodejs-slim_24 = callPackage ../development/web/nodejs/v24.nix { enableNpm = false; }; 4214 + corepack_24 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_24; }); 4215 4216 # Update this when adding the newest nodejs major version! 4217 + nodejs_latest = nodejs_24; 4218 + nodejs-slim_latest = nodejs-slim_24; 4219 + corepack_latest = hiPrio corepack_24; 4220 4221 buildNpmPackage = callPackage ../build-support/node/build-npm-package { }; 4222