nodejs_21: init at 21.0.0

Changelog: https://github.com/nodejs/node/releases/tag/v21.0.0
This commit is contained in:
Mario Rodas 2023-10-16 16:20:00 -05:00
parent 55b7c77df2
commit d479580285
2 changed files with 26 additions and 3 deletions

View File

@ -0,0 +1,19 @@
{ callPackage, openssl, python3, enableNpm ? true }:
let
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
python = python3;
};
in
buildNodejs {
inherit enableNpm;
version = "21.0.0";
sha256 = "sha256-vFYZK5Ua0YNQbcqaz3pNDAJZEUC3/I8lZhN1GZJm8/I=";
patches = [
./revert-arm64-pointer-auth.patch
./disable-darwin-v8-system-instrumentation-node19.patch
./bypass-darwin-xcrun-node16.patch
./node-npm-build-npm-package-logic.patch
];
}

View File

@ -10295,10 +10295,14 @@ with pkgs;
nodejs-slim_20 = callPackage ../development/web/nodejs/v20.nix { enableNpm = false; };
corepack_20 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_20; });
nodejs_21 = callPackage ../development/web/nodejs/v21.nix { };
nodejs-slim_21 = callPackage ../development/web/nodejs/v21.nix { enableNpm = false; };
corepack_21 = hiPrio (callPackage ../development/web/nodejs/corepack.nix { nodejs = nodejs_21; });
# Update this when adding the newest nodejs major version!
nodejs_latest = nodejs_20;
nodejs-slim_latest = nodejs-slim_20;
corepack_latest = hiPrio corepack_20;
nodejs_latest = nodejs_21;
nodejs-slim_latest = nodejs-slim_21;
corepack_latest = hiPrio corepack_21;
buildNpmPackage = callPackage ../build-support/node/build-npm-package { };