summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-12-24 12:21:05 +0100
committerJan Tojnar <jtojnar@gmail.com>2022-12-24 12:21:05 +0100
commit5851a072a5bafb1c48223f57069468cf3811593f (patch)
tree712053e20d6bc7536c61b640f8aa37eb25bb78d6
parentead87baa84f0b5c2ee8e7095208bd861073dea74 (diff)
downloadnixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.tar
nixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.tar.gz
nixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.tar.bz2
nixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.tar.lz
nixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.tar.xz
nixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.tar.zst
nixpkgs-5851a072a5bafb1c48223f57069468cf3811593f.zip
gtksourceview5: Fix test after gtk4 4.8.3 bump
GTK will crash during tests, likely due to refactored A11Y bus connection:

(/build/gtksourceview-5.6.1/build/testsuite/test-vim-state:4396): Gtk-WARNING **: 11:15:49.944: Unable to acquire the address of the accessibility bus: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files. If you are attempting to run GTK without a11y support, GTK_A11Y should be set to 'none'.
-rw-r--r--pkgs/development/libraries/gtksourceview/5.x.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gtksourceview/5.x.nix b/pkgs/development/libraries/gtksourceview/5.x.nix
index 97cb693e354..d3ac8246d95 100644
--- a/pkgs/development/libraries/gtksourceview/5.x.nix
+++ b/pkgs/development/libraries/gtksourceview/5.x.nix
@@ -86,10 +86,12 @@ stdenv.mkDerivation rec {
   checkPhase = ''
     runHook preCheck
 
-    XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
-    xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
-      --config-file=${dbus}/share/dbus-1/session.conf \
-      meson test --no-rebuild --print-errorlogs
+    env \
+      XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
+      GTK_A11Y=none \
+      xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
+        --config-file=${dbus}/share/dbus-1/session.conf \
+        meson test --no-rebuild --print-errorlogs
 
     runHook postCheck
   '';