Skip to content

Commit

Permalink
nodejs21
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 13, 2024
1 parent 39aa933 commit b8e08f3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pkgs/development/web/nodejs/v21.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ callPackage, openssl, python3, enableNpm ? true }:

let
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
python = python3;
};

gypPatches = callPackage ./gyp-patches.nix { } ++ [
./gyp-patches-pre-v22-import-sys.patch
];
in
buildNodejs {
inherit enableNpm;
version = "21.7.3";
sha256 = "sha256-Zosm+xv8HP9gYiu889cVhD4W9QyPMOn2T7QUGBTXmiE=";
patches = [
./configure-emulator.patch
./configure-armv6-vfpv2.patch
./disable-darwin-v8-system-instrumentation-node19.patch
./bypass-darwin-xcrun-node16.patch
./node-npm-build-npm-package-logic.patch
./use-correct-env-in-tests.patch
] ++ gypPatches;
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9499,6 +9499,10 @@ 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; });

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; });
Expand Down

0 comments on commit b8e08f3

Please sign in to comment.