nodejs-20_x: init at 20.0.0

This commit is contained in:
Jamie Magee
2023-04-18 21:30:22 -07:00
parent 6874adc57c
commit 7c1f952db3
2 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
{ callPackage, openssl, fetchpatch, python3, enableNpm ? true }:
let
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
python = python3;
};
in
buildNodejs {
inherit enableNpm;
version = "20.0.0";
sha256 = "sha256-dFDnV5Vo99HLOYGFz85HLaKDeyqjbFliCyLOS5d7XLU=";
patches = [
./revert-arm64-pointer-auth.patch
./disable-darwin-v8-system-instrumentation-node19.patch
./bypass-darwin-xcrun-node16.patch
];
}

View File

@@ -9402,9 +9402,13 @@ with pkgs;
nodejs-slim-19_x = callPackage ../development/web/nodejs/v19.nix {
enableNpm = false;
};
nodejs_20 = callPackage ../development/web/nodejs/v20.nix { };
nodejs-slim_20 = callPackage ../development/web/nodejs/v20.nix {
enableNpm = false;
};
# Update this when adding the newest nodejs major version!
nodejs_latest = nodejs-19_x;
nodejs-slim_latest = nodejs-slim-19_x;
nodejs_latest = nodejs_20;
nodejs-slim_latest = nodejs-slim_20;
buildNpmPackage = callPackage ../build-support/node/build-npm-package { };