summaryrefslogtreecommitdiff
path: root/gnu/packages/freedesktop.scm
diff options
context:
space:
mode:
authordan <i@dan.games>2025-12-12 15:50:14 +0800
committerLudovic Courtès <ludo@gnu.org>2025-12-19 00:05:44 +0100
commite4986719586e35182e21eba36fcf2062427e33db (patch)
tree45d0ed818ed50695dc80124b065f0bc6d3d20631 /gnu/packages/freedesktop.scm
parent35fd588af0679d9d442e82ba29d610a16571b393 (diff)
gnu: Add xdg-desktop-portal-next.
* gnu/packages/freedesktop.scm (xdg-desktop-portal-next): New variable. * gnu/packages/patches/xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Change-Id: I83c7d1c174a258761988b4d234b6fc4a9228e36f Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/freedesktop.scm')
-rw-r--r--gnu/packages/freedesktop.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index f8c7cd581fa..a80f1f05834 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -3251,6 +3251,41 @@ The portal interfaces include APIs for file access, opening URIs, printing
and others.")
(license license:lgpl2.1+)))
+(define-public xdg-desktop-portal-next
+ (let ((base xdg-desktop-portal))
+ (package
+ (inherit base)
+ (version "1.20.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/flatpak/xdg-desktop-portal/releases/download/"
+ version "/xdg-desktop-portal-" version ".tar.xz"))
+ (sha256
+ (base32
+ "1p4yvbhqr8yf231gm69vdz3h7na8m6x1mhiw3bmhg4gm6x4idysb"))
+ (patches (search-patches
+ "xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch"))
+ (modules '((guix build utils)))
+ ;; Disable failing tests.
+ (snippet #~(substitute* "tests/meson.build"
+ ((".*test_dynamiclauncher.*") "")
+ ((".*test_notification.*") "")
+ ((".*test_usb.*") "")))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:configure-flags flags #~'())
+ ;; Requires python-furo, which isn't packaged for guix, and depends
+ ;; on node.js.
+ #~(append '("-Ddocumentation=disabled")
+ #$flags))))
+ (inputs (modify-inputs (package-inputs base)
+ (append gstreamer
+ gst-plugins-base
+ gst-plugins-good
+ umockdev))))))
+
(define-public xdg-desktop-portal-gtk
(package
(name "xdg-desktop-portal-gtk")