From f6260a3fe5b2844671eb5dc3ff9f010009c116d1 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Wed, 14 Aug 2019 14:18:49 -0400 Subject: [PATCH] at-spi2-core: provide fallback dbus_daemon manually MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This point directly to the NixOS current-system. This is necessary to avoid creating a direct dependency on DBUS and increasing every app’s runtime closure. Luckily, dbus_daemon is only used for the case when dbus is not running and users can always run the dbus-daemon themselves if it cannot be found. --- pkgs/development/libraries/at-spi2-core/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/at-spi2-core/default.nix b/pkgs/development/libraries/at-spi2-core/default.nix index e5d5313eeb10..50513acb7e12 100644 --- a/pkgs/development/libraries/at-spi2-core/default.nix +++ b/pkgs/development/libraries/at-spi2-core/default.nix @@ -35,6 +35,12 @@ stdenv.mkDerivation rec { doCheck = false; # fails with "AT-SPI: Couldn't connect to accessibility bus. Is at-spi-bus-launcher running?" + # Provide dbus-daemon fallback when it is not already running when + # at-spi2-bus-launcher is executed. This allows us to avoid + # including the entire dbus closure in libraries linked with + # the at-spi2-core libraries. + mesonFlags = [ "-Ddbus_daemon=/run/current-system/sw/bin/dbus-daemon" ]; + passthru = { updateScript = gnome3.updateScript { packageName = pname;