Unverified Commit 845f94f4 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #261743 from marsam/add-nodejs_21

nodejs_21: init at 21.0.0
parents 0bc8847f d4795802
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
{ 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
  ];
}
+7 −3
Original line number Diff line number Diff line
@@ -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 { };