01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
25 lines
788 B
Nix
25 lines
788 B
Nix
{ callPackage, openssl, fetchpatch, python3, enableNpm ? true }:
|
|
|
|
let
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
inherit openssl;
|
|
python = python3;
|
|
};
|
|
in
|
|
buildNodejs {
|
|
inherit enableNpm;
|
|
version = "19.1.0";
|
|
sha256 = "sha256-Tqm6H5koFfuCOwIqYrYfU2Eh+XD+iMY5XH469OnPRqA=";
|
|
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
|
|
];
|
|
}
|