2023-01-20 10:41:00 +00:00
|
|
|
{ callPackage, openssl, python3, enableNpm ? true }:
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
2022-09-30 11:47:45 +00:00
|
|
|
inherit openssl;
|
2022-04-27 09:35:20 +00:00
|
|
|
python = python3;
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
npmPatches = callPackage ./npm-patches.nix { };
|
2022-04-27 09:35:20 +00:00
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "18.13.0";
|
|
|
|
sha256 = "0s6sscynhw9limpp43f965rn9grdamcvsnd9wfb2h5qxw1icajpx";
|
2022-04-27 09:35:20 +00:00
|
|
|
patches = [
|
2022-09-09 14:08:57 +00:00
|
|
|
./disable-darwin-v8-system-instrumentation.patch
|
2022-10-30 15:09:59 +00:00
|
|
|
./bypass-darwin-xcrun-node16.patch
|
2023-01-20 10:41:00 +00:00
|
|
|
] ++ npmPatches;
|
2022-04-27 09:35:20 +00:00
|
|
|
}
|