From c95c05c50bec7d9fac2655255c34ee8f7e0b4153 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Wed, 3 Apr 2024 23:23:34 +0200 Subject: [PATCH] . --- zilti/packages/hyprland.scm | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/zilti/packages/hyprland.scm b/zilti/packages/hyprland.scm index 63f3f60..54b6b9d 100644 --- a/zilti/packages/hyprland.scm +++ b/zilti/packages/hyprland.scm @@ -361,3 +361,53 @@ more.") (synopsis "Hyprland's GPU-accelerated screen locking utility") (description "Hyprland's simple, yet multi-threaded and GPU-accelerated screen locking utility.") (license license:bsd-3))) + +(define-public xdg-desktop-portal-hyprland + (package + (name "xdg-desktop-portal-hyprland") + (version "1.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hyprwm/xdg-desktop-portal-hyprland") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0fdbzxanmmzrvb9wfzg1pdsnlg7dl6v5k8bl44w10n48s7bbbzn0")))) + (build-system qt-build-system) + (arguments + (list #:tests? #f ;No tests + #:qtbase qtbase + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* (find-files "." "\\.cp?*$") + (("/bin/sh") "sh") + (("\\<(sh|grim|hyprctl|slurp)\\>" _ cmd) + (search-input-file inputs (string-append "/bin/" cmd))) + (("\\<(hyprland-share-picker)\\>" _ cmd) + (string-append #$output "/bin/" cmd)))))))) + (native-inputs + (list gcc-13 pkg-config wayland)) + (inputs + (list bash-minimal + grim + hyprland + rosenthal:hyprland-protocols + rosenthal:hyprlang + mesa + pipewire + qtwayland + sdbus-c++ + slurp + wayland-protocols)) + (home-page "https://github.com/hyprwm/xdg-desktop-portal-hyprland") + (synopsis "XDG Desktop Portal backend for Hyprland") + (description + "This package provides @code{xdg-desktop-portal-hyprland}, which extends +@code{xdg-desktop-portal-wlr} for Hyprland with support for +@code{xdg-desktop-portal} screenshot and casting interfaces, while adding a few +extra portals specific to Hyprland, mostly for window sharing.") + (license license:bsd-3)))