1{ callPackage, openssl, python3, fetchpatch, enableNpm ? true }:
2
3let
4 buildNodejs = callPackage ./nodejs.nix {
5 inherit openssl;
6 python = python3;
7 };
8
9 npmPatches = callPackage ./npm-patches.nix { };
10in
11 buildNodejs {
12 inherit enableNpm;
13 version = "16.20.0";
14 sha256 = "sha256-4JkPmSI05ApR/hH5LDgWyTp34bCBFF0912LNECY0U0k=";
15 patches = [
16 ./disable-darwin-v8-system-instrumentation.patch
17 ./bypass-darwin-xcrun-node16.patch
18 ./node-npm-build-npm-package-logic-node16.patch
19 ] ++ npmPatches;
20 }