Merge pull request #301508 from marsam/update-nodejs_18

nodejs_18: 18.19.1 -> 18.20.1
This commit is contained in:
Mario Rodas 2024-04-07 12:49:29 -05:00 committed by GitHub
commit 07cf2e8303
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -19,11 +19,8 @@ let
in
buildNodejs {
inherit enableNpm;
# The change to minor version 18.20.0 breaks compatibility with ffi-napi
# This breaks the compilation of some nix packages.
# While this is investigated and fixed, do not upgrade the minor version.
version = "18.19.1";
sha256 = "sha256-CQ+WouzeCAtrOCxtZCvKXQvkcCp4y1Vb578CsgvRbe0=";
version = "18.20.1";
sha256 = "sha256-xthnqfJeY1SBDv+4IB+BR6FbKAAOUHkP2gDRyhX0m4o=";
patches = [
./disable-darwin-v8-system-instrumentation.patch
./bypass-darwin-xcrun-node16.patch

View file

@ -117,6 +117,9 @@ stdenv.mkDerivation (finalAttrs: {
./remove-node-download.patch
];
# Disable NAPI_EXPERIMENTAL to allow to build with Node.js≥18.20.0.
env.NIX_CFLAGS_COMPILE = "-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT";
postPatch = ''
export HOME=$PWD