2022-07-22 04:20:00 +00:00
|
|
|
{ callPackage, openssl, python3, fetchpatch, enableNpm ? true }:
|
2021-04-20 04:20:00 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
inherit openssl;
|
|
|
|
python = python3;
|
|
|
|
};
|
2022-12-08 22:29:33 +00:00
|
|
|
|
|
|
|
npmPatches = callPackage ./npm-patches.nix { };
|
2021-04-20 04:20:00 +00:00
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2023-06-21 04:20:00 +00:00
|
|
|
version = "16.20.1";
|
|
|
|
sha256 = "sha256-g+AzgeJx8aVhkYjnrqnYXZt+EvW+KijOt41ySe0it/E=";
|
2021-12-11 02:28:09 +00:00
|
|
|
patches = [
|
|
|
|
./disable-darwin-v8-system-instrumentation.patch
|
2022-09-30 16:30:03 +00:00
|
|
|
./bypass-darwin-xcrun-node16.patch
|
2023-05-04 23:31:23 +00:00
|
|
|
./node-npm-build-npm-package-logic-node16.patch
|
2022-12-08 22:29:33 +00:00
|
|
|
] ++ npmPatches;
|
2021-04-20 04:20:00 +00:00
|
|
|
}
|