mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
- unstable to f4b794aaffc0e3d45da81088d492b118224bb476 - 26.05 to c0ae35c6460f00dcac6a59063e080f826e620b28 PR-URL: https://github.com/nodejs/node/pull/67173 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{
|
|
pkgs ? import ./pkgs.nix { },
|
|
withLief ? true,
|
|
withQuic ? false,
|
|
withSQLite ? true,
|
|
withSSL ? true,
|
|
withFFI ? true,
|
|
withPerfetto ? false,
|
|
withTemporal ? true,
|
|
}:
|
|
{
|
|
inherit (pkgs)
|
|
ada
|
|
brotli
|
|
gtest
|
|
libuv
|
|
merve
|
|
nbytes
|
|
nghttp2
|
|
simdjson
|
|
simdutf
|
|
uvwasi
|
|
zlib
|
|
zstd
|
|
;
|
|
abseil = pkgs.abseil-cpp;
|
|
cares = pkgs.c-ares;
|
|
hdr-histogram = pkgs.hdrhistogram_c;
|
|
highway = pkgs.libhwy;
|
|
http-parser = pkgs.llhttp;
|
|
}
|
|
// (pkgs.lib.optionalAttrs withLief {
|
|
# TODO: remove this override once the pin we use has picked up a new LIEF version that includes that patch.
|
|
lief = pkgs.lief.overrideAttrs (old: {
|
|
patches = (old.patches or [ ]) ++ [
|
|
(pkgs.fetchpatch2 {
|
|
url = "https://github.com/lief-project/LIEF/commit/15777f106f6220046cf26ee99940d1f56751325e.patch?full_index=1";
|
|
hash = "sha256-Dm7YsBZ4+It+c5PEodsjq7cdOryYOSXt6Lf7h0OH+7M=";
|
|
})
|
|
];
|
|
});
|
|
})
|
|
// (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 ({
|
|
inherit (import ./openssl-matrix.nix { inherit pkgs; }) openssl;
|
|
}))
|
|
// (pkgs.lib.optionalAttrs withPerfetto {
|
|
perfetto = pkgs.perfetto.sdk;
|
|
})
|
|
// (pkgs.lib.optionalAttrs withTemporal {
|
|
inherit (pkgs) temporal_capi;
|
|
})
|