diff --git a/pkgs/development/libraries/xdg-desktop-portal/default.nix b/pkgs/development/libraries/xdg-desktop-portal/default.nix index 52a78442e84c..79c7633a5576 100644 --- a/pkgs/development/libraries/xdg-desktop-portal/default.nix +++ b/pkgs/development/libraries/xdg-desktop-portal/default.nix @@ -147,6 +147,14 @@ stdenv.mkDerivation (finalAttrs: { # until/unless bubblewrap ships a pkg-config file, meson has no way to find it when cross-compiling. substituteInPlace meson.build \ --replace-fail "find_program('bwrap'" "find_program('${lib.getExe bubblewrap}'" + + # Disable test failing with libportal 0.9.0 + ${ + assert (lib.versionOlder finalAttrs.version "1.20.0"); + "# TODO: Remove when updating to x-d-p 1.20.0" + } + substituteInPlace tests/test-portals.c \ + --replace-fail 'g_test_add_func ("/portal/notification/bad-arg", test_notification_bad_arg);' "" ''; preCheck = ''