From 22eda77d98d8ce851be280be2310a53405e136f2 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 28 Jun 2026 17:17:41 +0200 Subject: [PATCH] nodejs_24: limit pinning of LLVM to darwin --- pkgs/development/web/nodejs/v24.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/web/nodejs/v24.nix b/pkgs/development/web/nodejs/v24.nix index ca6a16ddf1ba..823cd488c5b8 100644 --- a/pkgs/development/web/nodejs/v24.nix +++ b/pkgs/development/web/nodejs/v24.nix @@ -9,11 +9,15 @@ }: let - buildNodejs = callPackage ./nodejs.nix { - inherit openssl; - python = python3; - stdenv = buildPackages.llvmPackages_20.libcxxStdenv; - }; + buildNodejs = + callPackage ./nodejs.nix { + inherit openssl; + python = python3; + } + // lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # libcxx21 makes FD tracking unreliable on Darwin. Pinning to libcxx20: + stdenv = buildPackages.llvmPackages_20.libcxxStdenv; + }; gypPatches = if stdenv.buildPlatform.isDarwin then