h2o: optionally add Zstandard support

This commit is contained in:
·𐑑𐑴𐑕𐑑𐑩𐑤
2026-06-29 17:14:06 +07:00
parent 789715ba5b
commit 58db73c195
+7 -2
View File
@@ -20,6 +20,8 @@
ruby,
withUring ? stdenv.hostPlatform.isLinux,
liburing,
withZstandard ? true,
zstd,
nixosTests,
}:
@@ -53,7 +55,8 @@ stdenv.mkDerivation (finalAttrs: {
bison
ruby
]
++ lib.optional withUring liburing;
++ lib.optional withUring liburing
++ lib.optional withZstandard zstd;
buildInputs = [
brotli
@@ -64,11 +67,13 @@ stdenv.mkDerivation (finalAttrs: {
zlib
wslay
]
++ lib.optional withBrotli brotli;
++ lib.optional withBrotli brotli
++ lib.optional withZstandard zstd;
cmakeFlags = [
"-DWITH_BROTLI=${if withBrotli then "ON" else "OFF"}"
"-DWITH_MRUBY=${if withMruby then "ON" else "OFF"}"
"-DWITH_ZSTD=${if withZstandard then "ON" else "OFF"}"
];
postInstall = ''