From 58db73c1953898286aa270e417e0388b0cd68cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B7=F0=90=91=91=F0=90=91=B4=F0=90=91=95=F0=90=91=91?= =?UTF-8?q?=F0=90=91=A9=F0=90=91=A4?= Date: Fri, 26 Jun 2026 22:27:19 +0700 Subject: [PATCH] h2o: optionally add Zstandard support --- pkgs/by-name/h2/h2o/package.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/h2/h2o/package.nix b/pkgs/by-name/h2/h2o/package.nix index 6cb9d4a64ab7..32aa6ad16fbc 100644 --- a/pkgs/by-name/h2/h2o/package.nix +++ b/pkgs/by-name/h2/h2o/package.nix @@ -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 = ''