mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com> PR-URL: https://github.com/nodejs/node/pull/62679 Reviewed-By: Filip Skokan <panva.ip@gmail.com>
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
pkgs ? import ./pkgs.nix { },
|
|
withLief ? true,
|
|
withQuic ? false,
|
|
withSQLite ? true,
|
|
withSSL ? true,
|
|
withFFI ? true,
|
|
withTemporal ? false,
|
|
}:
|
|
{
|
|
inherit (pkgs)
|
|
ada
|
|
brotli
|
|
gtest
|
|
libuv
|
|
merve
|
|
nbytes
|
|
simdjson
|
|
simdutf
|
|
uvwasi
|
|
zlib
|
|
zstd
|
|
;
|
|
cares = pkgs.c-ares;
|
|
hdr-histogram = pkgs.hdrhistogram_c;
|
|
http-parser = pkgs.llhttp;
|
|
nghttp2 = pkgs.nghttp2.overrideAttrs {
|
|
patches = [
|
|
(pkgs.fetchpatch2 {
|
|
url = "https://github.com/nghttp2/nghttp2/commit/7784fa979d0bcf801a35f1afbb25fb048d815cd7.patch?full_index=1";
|
|
revert = true;
|
|
excludes = [ "lib/includes/nghttp2/nghttp2.h" ];
|
|
hash = "sha256-RG87Qifjpl7HTP9ac2JwHj2XAbDlFgOpAnpZX3ET6gU=";
|
|
})
|
|
];
|
|
};
|
|
}
|
|
// (pkgs.lib.optionalAttrs withLief {
|
|
inherit (pkgs) lief;
|
|
})
|
|
// (pkgs.lib.optionalAttrs withQuic {
|
|
inherit (pkgs)
|
|
nghttp3
|
|
ngtcp2
|
|
;
|
|
})
|
|
// (pkgs.lib.optionalAttrs withSQLite {
|
|
inherit (pkgs) sqlite;
|
|
})
|
|
// (pkgs.lib.optionalAttrs withFFI {
|
|
ffi = pkgs.libffiReal;
|
|
})
|
|
// (pkgs.lib.optionalAttrs withSSL ({
|
|
openssl = pkgs.openssl_3_5;
|
|
}))
|
|
// (pkgs.lib.optionalAttrs withTemporal {
|
|
inherit (pkgs) temporal_capi;
|
|
})
|