From patchwork Wed Nov 6 07:36:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 69920 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9EC3427BBE9; Wed, 6 Nov 2024 07:39:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3236B27BBE2 for ; Wed, 6 Nov 2024 07:39:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8acM-0008JG-MF; Wed, 06 Nov 2024 02:38:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8ac9-0008Fe-OE for guix-patches@gnu.org; Wed, 06 Nov 2024 02:38:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8ac9-0003mI-G0 for guix-patches@gnu.org; Wed, 06 Nov 2024 02:38:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=3rYcQO3YysmPgQlJBY3FSoJFcY5iML1Akdy9otnHM7U=; b=DAPE4tXrBGdZeZ58qrbFx+OALigNmxG4NA1mVC+io0via7Vsf0++UbwOYMRqQi+Iu8m1JaHs/QARJdtnKcn7WLUq6R9Iguf6yIRTwIneipyUPAS8McRuo0Z2KWizFGSBgWZxc02skI4RzuRzjS21RxuGP5IZJTUGAiGR3lPY5zrmVvb4WTcO0BE0wrZ5JpQWWAbAwRLZ2OEQfALBgZ3pWbwTXjS6FJxRxmu/5mZ5L2JC6MXhkmd0xmLfvYHwEd/GRkJjwqjXScclwddlIDjDjgiXnSkGpWVIVrJKN+AoQFnNiQGZLlFy1+jWmUom3083SttZR7oSzN1Yd8FFhTSMYA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8ac9-0000eB-Al for guix-patches@gnu.org; Wed, 06 Nov 2024 02:38:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74223] [PATCH 09/11] gnu: Add xdg-desktop-portal-hyprland. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Nov 2024 07:38:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74223 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74223@debbugs.gnu.org Cc: Hilton Chain , Ryan Schanzenbacher Received: via spool by 74223-submit@debbugs.gnu.org id=B74223.17308786352354 (code B ref 74223); Wed, 06 Nov 2024 07:38:05 +0000 Received: (at 74223) by debbugs.gnu.org; 6 Nov 2024 07:37:15 +0000 Received: from localhost ([127.0.0.1]:39112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8abL-0000bn-0c for submit@debbugs.gnu.org; Wed, 06 Nov 2024 02:37:15 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:43368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8abG-0000aQ-VX for 74223@debbugs.gnu.org; Wed, 06 Nov 2024 02:37:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1730878630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3rYcQO3YysmPgQlJBY3FSoJFcY5iML1Akdy9otnHM7U=; b=agHUnTh9lAJ9QEmUCXHVk+GwPpuPtbdp11U+aPiUb7RiuvMGW/s8eqn5eHH9hSdym4C1si tRjQvNAvEj1UtnaygHOJV9SEv4hpCNtXLUwRUSzaBG6wXLjfaLVg/sW/BUj3VCG/Ma/CQk vmOFtnL1C8shHlZWnmJq8eEY1Ij7YFjI5Qdqfxh+EdRO0vnNssG7U2A8CqJjdUY9TSMvyT piZ1OyuE6bNtf1pSPfIvD/aZmLP0a7IYcmOcsdwh/g/6s5I1FC6SWSMakqmO7eiKCQTxje +7finvH9BWdIA7RFMmaEosU+k2o/L2ox/I/ZxT22FRyy/G8BjmRemUKJ045yzA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Date: Wed, 6 Nov 2024 15:36:25 +0800 Message-ID: <3fd8afbd7d61de3707161cefc1e770882ed09b98.1730877074.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 X-Spamd-Bar: ----- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches X-Patchwork-Original-From: Hilton Chain via Guix-patches via From: Hilton Chain Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Ryan Schanzenbacher * gnu/packages/freedesktop.scm (xdg-desktop-portal-hyprland): New variable. Co-authored-by: Hilton Chain Change-Id: If8c413319b089ed5d8d75aa0503f886a81697278 --- gnu/packages/freedesktop.scm | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 7969603613..43ebecabbb 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -83,6 +83,7 @@ (define-module (gnu packages freedesktop) #:use-module (gnu packages check) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages cryptsetup) #:use-module (gnu packages cups) @@ -141,6 +142,7 @@ (define-module (gnu packages freedesktop) #:use-module (gnu packages virtualization) #:use-module (gnu packages w3m) #:use-module (gnu packages web) + #:use-module (gnu packages wm) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) @@ -3193,6 +3195,56 @@ (define-public xdg-desktop-portal-gtk interfaces.") (license license:lgpl2.1+))) +(define-public xdg-desktop-portal-hyprland + (package + (name "xdg-desktop-portal-hyprland") + (version "1.3.6") + (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 "17ba9jkccyp8gv79ds70khgm5wm6x8zs5m9nkilq4n2j7fsa8cfl")))) + (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)))) + (substitute* "src/shared/ScreencopyShared.cpp" + (("\\<(hyprland-share-picker)\\>" _ cmd) + (string-append #$output "/bin/" cmd)))))))) + (native-inputs + (list gcc-13 hyprwayland-scanner pkg-config)) + (inputs + (list bash-minimal + grim + hyprland + hyprland-protocols + hyprlang + hyprutils + mesa + pipewire + qtwayland + sdbus-c++ + slurp + wayland + wayland-protocols)) + (home-page "https://github.com/hyprwm/xdg-desktop-portal-hyprland") + (synopsis "Hyprland implementation of @code{xdg-desktop-portal} backend") + (description + "This package provides an @code{xdg-desktop-portal} backend for Hyprland.") + (license license:bsd-3))) + (define-public xdg-desktop-portal-kde (package (name "xdg-desktop-portal-kde")