nixpkgs/pkgs/development/web/nodejs/v18.nix
Mario Rodas 117f0a80ec
Merge pull request #192784 from RaitoBezarius/fix-yarn2nix-moretea-for-older-openssl
yarn2nix-moretea-openssl_1_1: pass openssl for Node.js v18, unbreak it
2022-09-24 11:25:07 -05:00

25 lines
742 B
Nix

{ callPackage, openssl, fetchpatch, python3, enableNpm ? true }:
let
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
python = python3;
};
in
buildNodejs {
inherit enableNpm;
version = "18.9.1";
sha256 = "sha256-84GWPUNWi6aZkVyIYp3G2koZY4BNzTey5uHRDZI91dk=";
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.patch
];
}