From 607036aace1dbcfeb0897d709519ca14f82ba227 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 21 Oct 2026 13:12:45 +0200 Subject: [PATCH] nodejs_22,nodejs_26: fix build --- pkgs/development/web/nodejs/nodejs.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index d0d7b0f4e500..8a6b5d9ebe1f 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -134,8 +134,22 @@ let useSharedZstd = lib.versionAtLeast version "22.15"; sharedLibDeps = { + # TODO: remove this on staging and land with https://github.com/NixOS/nixpkgs/pull/576792 + brotli = + if majorVersion == "24" then + brotli + else + brotli.overrideAttrs (old: { + patches = old.patches ++ [ + # Fix for CVE-2026-111497 + (fetchurl { + url = "https://github.com/google/brotli/commit/0ed4268a4401abcb4472096340477cf4af7d1a2b.patch?full_index=1"; + hash = "sha256-1vliUJAAIj3vcGKVgim9CEV+XgMuftDR2U+3kLBUsfw="; + }) + ]; + }); + inherit - brotli libuv nghttp2 nghttp3