PR-URL: https://github.com/nodejs/node/pull/61341 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
pkgs ? import ./pkgs.nix { },
|
|
withSQLite ? true,
|
|
withSSL ? true,
|
|
withTemporal ? false,
|
|
}:
|
|
{
|
|
inherit (pkgs)
|
|
ada
|
|
brotli
|
|
gtest
|
|
libuv
|
|
nghttp2
|
|
nghttp3
|
|
ngtcp2
|
|
simdjson
|
|
simdutf
|
|
uvwasi
|
|
zlib
|
|
zstd
|
|
;
|
|
cares = pkgs.c-ares;
|
|
hdr-histogram = pkgs.hdrhistogram_c;
|
|
http-parser = pkgs.llhttp;
|
|
nbytes = pkgs.callPackage "${
|
|
pkgs.fetchgit {
|
|
url = "https://github.com/NixOS/nixpkgs.git";
|
|
rev = "3146c6aa9995e7351a398e17470e15305e6e18ff";
|
|
sparseCheckout = [
|
|
"/pkgs/by-name/nb/nbytes/"
|
|
];
|
|
hash = "sha256-8cbu4ftn5ke7vd4cniwxuyKl6FRxwdToBj77oyYmsfk=";
|
|
}
|
|
}/pkgs/by-name/nb/nbytes/package.nix" { };
|
|
}
|
|
// (pkgs.lib.optionalAttrs withSQLite {
|
|
inherit (pkgs) sqlite;
|
|
})
|
|
// (pkgs.lib.optionalAttrs withSSL {
|
|
openssl = pkgs.openssl.overrideAttrs (old: {
|
|
version = "3.5.4";
|
|
src = pkgs.fetchurl {
|
|
url = builtins.replaceStrings [ old.version ] [ "3.5.4" ] old.src.url;
|
|
hash = "sha256-lnMR+ElVMWlpvbHY1LmDcY70IzhjnGIexMNP3e81Xpk=";
|
|
};
|
|
doCheck = false;
|
|
configureFlags = (old.configureFlags or [ ]) ++ [
|
|
"no-docs"
|
|
"no-tests"
|
|
];
|
|
outputs = [
|
|
"bin"
|
|
"out"
|
|
"dev"
|
|
];
|
|
});
|
|
})
|
|
// (pkgs.lib.optionalAttrs withTemporal {
|
|
inherit (pkgs) temporal_capi;
|
|
})
|