From b804fa464fe6b6a4b427c58ec9b57c1a12a11279 Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Thu, 4 Jun 2026 11:56:27 +0200 Subject: [PATCH] xdg-desktop-portal: 1.20.4 -> 1.22.1 --- .../installed-tests/xdg-desktop-portal.nix | 1 + .../by-name/xd/xdg-desktop-portal/package.nix | 22 ++++++++++++------- .../xd/xdg-desktop-portal/trash-test.patch | 18 --------------- 3 files changed, 15 insertions(+), 26 deletions(-) delete mode 100644 pkgs/by-name/xd/xdg-desktop-portal/trash-test.patch diff --git a/nixos/tests/installed-tests/xdg-desktop-portal.nix b/nixos/tests/installed-tests/xdg-desktop-portal.nix index a85203fe3eda..dabc2fb306e0 100644 --- a/nixos/tests/installed-tests/xdg-desktop-portal.nix +++ b/nixos/tests/installed-tests/xdg-desktop-portal.nix @@ -22,6 +22,7 @@ makeInstalledTest { environment.systemPackages = with pkgs; [ umockdev wireless-regdb + bubblewrap ]; services.geoclue2 = { enable = true; diff --git a/pkgs/by-name/xd/xdg-desktop-portal/package.nix b/pkgs/by-name/xd/xdg-desktop-portal/package.nix index 32c369a0e4a6..0cb5231b568a 100644 --- a/pkgs/by-name/xd/xdg-desktop-portal/package.nix +++ b/pkgs/by-name/xd/xdg-desktop-portal/package.nix @@ -40,13 +40,20 @@ let domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "libglnx"; - rev = "ccea836b799256420788c463a638ded0636b1632"; - hash = "sha256-H8Bg9QCSkt/aBOaHLyHYC2ei6OU7UpcLq8zLurkYOuA="; + rev = "ff64d52116ae74f0d25e24f089db28921ea171ff"; + hash = "sha256-U6+vIU/wxnGGg07FJElQijbV0+jUswdG/lfzhw4wQy0="; + }; + gvdbSrc = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "GNOME"; + repo = "gvdb"; + rev = "c6f2359cc1d00f16e0a0e2527fa0bc1882b8b5ab"; + hash = "sha256-FQPctq+fj6du0sBawaJxtO0PRO0KIHHhdA2jh24Yacw="; }; in stdenv.mkDerivation (finalAttrs: { pname = "xdg-desktop-portal"; - version = "1.20.4"; + version = "1.22.1"; outputs = [ "out" @@ -58,7 +65,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "flatpak"; repo = "xdg-desktop-portal"; tag = finalAttrs.version; - hash = "sha256-wLQgJsVicOb8G7M5Qwd+t90UgNYTD04bZ5Ki85Alr1w="; + hash = "sha256-GYPc5gFw3vMiDbrw5h6xeU7wupfyWeWq/Vl+vVrX8h0="; }; patches = [ @@ -75,9 +82,6 @@ stdenv.mkDerivation (finalAttrs: { # Allow installing installed tests to a separate output. ./installed-tests-path.patch - - # test tries to read /proc/cmdline, which is not intended to be accessible in the sandbox - ./trash-test.patch ]; nativeBuildInputs = [ @@ -129,6 +133,7 @@ stdenv.mkDerivation (finalAttrs: { ps.dbus-python ])) umockdev + bubblewrap ]; checkInputs = [ umockdev ]; @@ -152,8 +157,9 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; postPatch = '' - mkdir -p subprojects/libglnx + mkdir -p subprojects/{libglnx,gvdb} cp -r ${libglnxSrc}/* subprojects/libglnx/ + cp -r ${gvdbSrc}/* subprojects/gvdb/ # until/unless bubblewrap ships a pkg-config file, meson has no way to find it when cross-compiling. substituteInPlace meson.build \ diff --git a/pkgs/by-name/xd/xdg-desktop-portal/trash-test.patch b/pkgs/by-name/xd/xdg-desktop-portal/trash-test.patch deleted file mode 100644 index 23991fd87020..000000000000 --- a/pkgs/by-name/xd/xdg-desktop-portal/trash-test.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/tests/test_trash.py b/tests/test_trash.py -index 2637256..e89d45c 100644 ---- a/tests/test_trash.py -+++ b/tests/test_trash.py -@@ -13,13 +13,6 @@ class TestTrash: - def test_version(self, portals, dbus_con): - xdp.check_version(dbus_con, "Trash", 1) - -- def test_trash_file_fails(self, portals, dbus_con): -- trash_intf = xdp.get_portal_iface(dbus_con, "Trash") -- with open("/proc/cmdline") as fd: -- result = trash_intf.TrashFile(fd.fileno()) -- -- assert result == 0 -- - def test_trash_file(self, portals, dbus_con): - trash_intf = xdp.get_portal_iface(dbus_con, "Trash") -