nixpkgs/pkgs/development/web/nodejs/v20.nix
Sergei Trofimovich e568a6f0e4 nodejs: backport openssl fixes
Without the change `nodejs` fails on staging as:

    Failed tests:
    out/Release/node /build/node-v20.12.2/test/parallel/test-http2-https-fallback.js
    out/Release/node /build/node-v20.12.2/test/parallel/test-http2-server-unknown-protocol.js
    out/Release/node /build/node-v20.12.2/test/parallel/test-tls-alpn-server-client.js
2024-06-22 18:22:54 +01:00

28 lines
879 B
Nix

{ callPackage, fetchpatch2, openssl, python3, enableNpm ? true }:
let
buildNodejs = callPackage ./nodejs.nix {
inherit openssl;
python = python3;
};
in
buildNodejs {
inherit enableNpm;
version = "20.14.0";
sha256 = "sha256-CGVQKPDYQ26IFj+RhgRNY10/Nqhe5Sjza9BbbF5Gwbs=";
patches = [
./disable-darwin-v8-system-instrumentation-node19.patch
./bypass-darwin-xcrun-node16.patch
./node-npm-build-npm-package-logic.patch
./use-correct-env-in-tests.patch
(fetchpatch2 {
url = "https://github.com/nodejs/node/commit/534c122de166cb6464b489f3e6a9a544ceb1c913.patch";
hash = "sha256-4q4LFsq4yU1xRwNsM1sJoNVphJCnxaVe2IyL6AeHJ/I=";
})
(fetchpatch2 {
url = "https://github.com/nodejs/node/commit/14863e80584e579fd48c55f6373878c821c7ff7e.patch";
hash = "sha256-I7Wjc7DE059a/ZyXAvAqEGvDudPjxQqtkBafckHCFzo=";
})
];
}