2024-07-27 06:49:29 +00:00
|
|
|
{ callPackage, fetchpatch2, openssl, python3, enableNpm ? true }:
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
inherit openssl;
|
|
|
|
python = python3;
|
|
|
|
};
|
2024-07-31 10:19:44 +00:00
|
|
|
|
|
|
|
gypPatches = callPackage ./gyp-patches.nix { } ++ [
|
|
|
|
./gyp-patches-v22-import-sys.patch
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "22.4.1";
|
|
|
|
sha256 = "sha256-ZfyFf1qoJWqvyQCzRMARXJrq4loCVB/Vzg29Tf0cX7k=";
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
./disable-darwin-v8-system-instrumentation-node19.patch
|
|
|
|
./bypass-darwin-xcrun-node16.patch
|
|
|
|
./node-npm-build-npm-package-logic.patch
|
2024-07-27 06:49:29 +00:00
|
|
|
./use-correct-env-in-tests.patch
|
|
|
|
./bin-sh-node-run-v22.patch
|
2024-07-31 10:19:44 +00:00
|
|
|
] ++ gypPatches;
|
2023-11-16 04:20:00 +00:00
|
|
|
}
|