diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 86d5897f8e6203..36bd1f071db474 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -8,6 +8,7 @@ , gnupg , darwin , installShellFiles +, fetchpatch }: { enableNpm ? true, version, sha256, patches ? [] } @args: @@ -249,7 +250,13 @@ let pos = builtins.unsafeGetAttrPos "version" args; - inherit patches; + patches = patches ++ [ + # fixes test failure + (fetchpatch { + url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch"; + hash = "sha256-y45G9Vc58Nh0I+kSS3iRnoZe7se55rk3PVMpgZgPY+U="; + }) + ]; __darwinAllowLocalNetworking = true; # for tests @@ -299,6 +306,7 @@ let "FLAKY_TESTS=skip" # Skip some tests that are not passing in this context "CI_SKIP_TESTS=${lib.concatStringsSep "," ([ + # Tests don't work in sandbox. "test-child-process-exec-env" "test-child-process-uid-gid" "test-fs-write-stream-eagain"