dbus: make epoll, inotify, and systemd support conditional

These will be enabled by default due `-Dauto_features=enabled` being set
in Nixpkgs. However, not all of those features are available on every
platform supported by D-Bus, so set them conditionally.
This commit is contained in:
Randy Eckenrode
2026-01-27 11:59:58 -05:00
parent 0ef5ddf607
commit d964cb6440
+3
View File
@@ -106,9 +106,12 @@ stdenv.mkDerivation (finalAttrs: {
"-Dsystemd_user_unitdir=${placeholder "out"}/etc/systemd/user"
(lib.mesonEnable "x11_autolaunch" x11Support)
(lib.mesonEnable "apparmor" stdenv.hostPlatform.isLinux)
(lib.mesonEnable "epoll" stdenv.hostPlatform.isLinux)
(lib.mesonEnable "inotify" stdenv.hostPlatform.isLinux)
(lib.mesonEnable "libaudit" stdenv.hostPlatform.isLinux)
(lib.mesonEnable "kqueue" (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isBSD))
(lib.mesonEnable "launchd" stdenv.hostPlatform.isDarwin)
(lib.mesonEnable "systemd" enableSystemd)
"-Dselinux=disabled"
]
++ lib.optionals enableSystemd [