diff --git a/pkgs/development/libraries/at-spi2-core/default.nix b/pkgs/development/libraries/at-spi2-core/default.nix index f34262b03f2d..fd95f359bdc5 100644 --- a/pkgs/development/libraries/at-spi2-core/default.nix +++ b/pkgs/development/libraries/at-spi2-core/default.nix @@ -18,6 +18,7 @@ , libXi , libXext , gnome +, systemd }: stdenv.mkDerivation rec { @@ -49,6 +50,9 @@ stdenv.mkDerivation rec { libXi # libXext is a transitive dependency of libXi libXext + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ + # libsystemd is a needed for dbus-broker support + systemd ]; # In atspi-2.pc dbus-1 glib-2.0 @@ -67,6 +71,9 @@ stdenv.mkDerivation rec { # including the entire dbus closure in libraries linked with # the at-spi2-core libraries. "-Ddbus_daemon=/run/current-system/sw/bin/dbus-daemon" + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ + # Same as the above, but for dbus-broker + "-Ddbus_broker=/run/current-system/sw/bin/dbus-broker-launch" ]; passthru = {