Skip to content

Commit f1690c4

Browse files
committed
nodejs_latest: 23.11.0 -> 24.0.0-rc.2
1 parent d8e0934 commit f1690c4

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

doc/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@
185185

186186
- `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";`.
187187

188+
- `nodejs_latest` was updated from 23.x to 24.x. `nodejs_23` has been removed in favor of `nodejs_24`.
189+
188190
- `nodePackages."@commitlint/config-conventional"` has been removed, as it is a library, and projects should depend on it instead.
189191

190192
- 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.

pkgs/by-name/ta/tailwindcss-language-server/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5-
nodejs_23,
5+
nodejs_latest,
66
pnpm_9,
77
cacert,
88
}:
@@ -33,12 +33,12 @@ stdenv.mkDerivation (finalAttrs: {
3333
};
3434

3535
nativeBuildInputs = [
36-
nodejs_23
36+
nodejs_latest
3737
pnpm_9.configHook
3838
];
3939

4040
buildInputs = [
41-
nodejs_23
41+
nodejs_latest
4242
];
4343

4444
pnpmWorkspaces = [ "@tailwindcss/language-server..." ];

pkgs/by-name/wi/windsurf/update/update.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env nix-shell
22
/*
3-
#!nix-shell -i node --pure --packages cacert nodejs_23
3+
#!nix-shell -i node --pure --packages cacert nodejs_latest
44
*/
55
import * as assert from "node:assert/strict";
66
import * as fsPromises from "node:fs/promises";

pkgs/development/web/nodejs/nodejs.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ let
176176
done
177177
'';
178178

179+
downloadDir = if lib.strings.hasInfix "-rc." version then "download/rc" else "dist";
180+
179181
package = stdenv.mkDerivation (
180182
finalAttrs:
181183
let
@@ -188,7 +190,7 @@ let
188190
inherit pname version;
189191

190192
src = fetchurl {
191-
url = "https://nodejs.org/dist/v${version}/node-v${version}.tar.xz";
193+
url = "https://nodejs.org/${downloadDir}/v${version}/node-v${version}.tar.xz";
192194
inherit sha256;
193195
};
194196

@@ -519,7 +521,7 @@ let
519521
passthru.tests = {
520522
version = testers.testVersion {
521523
package = self;
522-
version = "v${version}";
524+
version = "v${lib.head (lib.strings.splitString "-rc." version)}";
523525
};
524526
};
525527

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ let
1717
in
1818
buildNodejs {
1919
inherit enableNpm;
20-
version = "23.11.0";
21-
sha256 = "f2c5db21fc5d3c3d78c7e8823bff770cef0da8078c3b5ac4fa6d17d5a41be99d";
20+
version = "24.0.0-rc.2";
21+
sha256 = "729fca42bb7266031dd020f3935423ea8d4b4e2d119b34b608f1d079e5c1621a";
2222
patches =
2323
(
2424
if (stdenv.hostPlatform.emulatorAvailable buildPackages) then

pkgs/top-level/all-packages.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4209,14 +4209,14 @@ with pkgs;
42094209
nodejs-slim_22 = callPackage ../development/web/nodejs/v22.nix { enableNpm = false; };
42104210
corepack_22 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_22; });
42114211

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; });
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; });
42154215

42164216
# 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;
4217+
nodejs_latest = nodejs_24;
4218+
nodejs-slim_latest = nodejs-slim_24;
4219+
corepack_latest = hiPrio corepack_24;
42204220

42214221
buildNpmPackage = callPackage ../build-support/node/build-npm-package { };
42224222

0 commit comments

Comments
 (0)