From e5ca8bf60a4836ebf9cd9fa3be028d25df4c9e8a Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 2 Feb 2026 10:53:17 +0900 Subject: [PATCH] apacheHttpd: add support for sd_notify --- pkgs/servers/http/apache-httpd/2.4.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix index 5228b019dbc3..43f3cd60b7e7 100644 --- a/pkgs/servers/http/apache-httpd/2.4.nix +++ b/pkgs/servers/http/apache-httpd/2.4.nix @@ -32,6 +32,8 @@ brotli, luaSupport ? false, lua5, + systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs, + systemdLibs, }: stdenv.mkDerivation rec { @@ -83,7 +85,8 @@ stdenv.mkDerivation rec { ++ lib.optional luaSupport lua5 ++ lib.optional libxml2Support libxml2 ++ lib.optional http2Support nghttp2 - ++ lib.optional stdenv.hostPlatform.isDarwin libiconv; + ++ lib.optional stdenv.hostPlatform.isDarwin libiconv + ++ lib.optional systemdSupport systemdLibs; postPatch = '' sed -i config.layout -e "s|installbuilddir:.*|installbuilddir: $dev/share/build|" @@ -117,6 +120,7 @@ stdenv.mkDerivation rec { (lib.withFeatureAs libxml2Support "libxml2" "${libxml2.dev}/include/libxml2") (lib.enableFeature brotliSupport "brotli") (lib.enableFeature http2Support "http2") + (lib.enableFeature systemdSupport "systemd") (lib.enableFeature luaSupport "lua") ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [