apacheHttpd: add support for sd_notify

This commit is contained in:
h7x4
2026-02-02 10:53:17 +09:00
parent 18c39cfc2d
commit e5ca8bf60a

View File

@@ -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) [