2022-11-02 22:02:43 +00:00
|
|
|
{ callPackage, openssl, fetchpatch, python3, enableNpm ? true }:
|
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
inherit openssl;
|
|
|
|
python = python3;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "19.0.1";
|
|
|
|
sha256 = "sha256-7OXCjOtHY/Xn8nb4ySUbNiHh+m5FyULnV8TRUfi/AW0=";
|
2022-11-02 22:02:43 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# 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;
|
|
|
|
})
|
|
|
|
|
|
|
|
./disable-darwin-v8-system-instrumentation-node19.patch
|
|
|
|
./bypass-darwin-xcrun-node16.patch
|
|
|
|
];
|
|
|
|
}
|