From d964cb6440e0c877f565b3aa2c467e48fd1ce3a1 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 26 Jan 2026 15:35:56 -0500 Subject: [PATCH] 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. --- pkgs/by-name/db/dbus/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/db/dbus/package.nix b/pkgs/by-name/db/dbus/package.nix index dea34453ba09..e96dfd135076 100644 --- a/pkgs/by-name/db/dbus/package.nix +++ b/pkgs/by-name/db/dbus/package.nix @@ -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 [