Merge pull request #261743 from marsam/add-nodejs_21
nodejs_21: init at 21.0.0
This commit is contained in:
commit
845f94f441
2 changed files with 26 additions and 3 deletions
19
pkgs/development/web/nodejs/v21.nix
Normal file
19
pkgs/development/web/nodejs/v21.nix
Normal 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
|
||||
];
|
||||
}
|
|
@ -10304,10 +10304,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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue