nodejs_22,nodejs_26: fix build

This commit is contained in:
Antoine du Hamel
2026-10-21 13:12:45 +02:00
parent cec8f72b95
commit 607036aace

View File

@@ -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