Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
# Build options
icu ? pkgs.icu,
withAmaro ? true,
withQuic ? false,
withSQLite ? true,
withSSL ? true,
withTemporal ? false,
sharedLibDeps ? import ./tools/nix/sharedLibDeps.nix {
inherit
pkgs
withQuic
withSQLite
withSSL
withTemporal
Expand Down Expand Up @@ -81,6 +83,7 @@ pkgs.mkShell {
]
++ extraConfigFlags
++ pkgs.lib.optional (!withAmaro) "--without-amaro"
++ pkgs.lib.optional withQuic "--experimental-quic"
++ pkgs.lib.optional (!withSQLite) "--without-sqlite"
++ pkgs.lib.optional (!withSSL) "--without-ssl"
++ pkgs.lib.optional withTemporal "--v8-enable-temporal-support"
Expand Down
9 changes: 7 additions & 2 deletions tools/nix/sharedLibDeps.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
pkgs ? import ./pkgs.nix { },
withQuic ? false,
withSQLite ? true,
withSSL ? true,
withTemporal ? false,
Expand All @@ -12,8 +13,6 @@
gtest
libuv
nbytes
nghttp3
ngtcp2
simdjson
simdutf
uvwasi
Expand All @@ -33,6 +32,12 @@
];
};
}
// (pkgs.lib.optionalAttrs withQuic {
inherit (pkgs)
nghttp3
ngtcp2
;
})
// (pkgs.lib.optionalAttrs withSQLite {
inherit (pkgs) sqlite;
})
Expand Down