2022-09-30 11:47:45 +00:00
|
|
|
{ callPackage, openssl, fetchpatch, 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;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "18.12.0";
|
|
|
|
sha256 = "sha256-c6fwHimZ6xl3Y87WZqbNVErVgOrvtz4KhJYDs+gE9C4=";
|
2022-04-27 09:35:20 +00:00
|
|
|
patches = [
|
2022-08-21 13:32:41 +00:00
|
|
|
(fetchpatch {
|
2022-09-09 14:08:57 +00:00
|
|
|
# Fixes cross compilation to aarch64-linux by reverting https://github.com/nodejs/node/pull/43200
|
|
|
|
name = "revert-arm64-pointer-auth.patch";
|
|
|
|
url = "https://github.com/nodejs/node/pull/43200/commits/d42c42cc8ac652ab387aa93205aed6ece8a5040a.patch";
|
|
|
|
sha256 = "sha256-ipGzg4lEoftTJbt6sW+0QJO/AZqHvUkFKe0qlum+iLY=";
|
|
|
|
revert = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
})
|
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
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
}
|