nodejs_22: init at 22.0.0

Changelog: https://github.com/nodejs/node/releases/tag/v22.0.0
This commit is contained in:
Mario Rodas 2024-04-24 04:20:00 +00:00
parent ee8fd5caf0
commit ba733f8000
2 changed files with 25 additions and 3 deletions

View File

@ -0,0 +1,18 @@
{ callPackage, openssl, python3, enableNpm ? true }:
let
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
python = python3;
};
in
buildNodejs {
inherit enableNpm;
version = "22.0.0";
sha256 = "sha256-IuKPv/MfaQc7gCTLQnReUQX4QEHzR1smC5fVoUEDnRo=";
patches = [
./disable-darwin-v8-system-instrumentation-node19.patch
./bypass-darwin-xcrun-node16.patch
./node-npm-build-npm-package-logic.patch
];
}

View File

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