From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 04:20:22 2024 Received: (at submit) by debbugs.gnu.org; 21 Apr 2024 08:20:22 +0000 Received: from localhost ([127.0.0.1]:41383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySQv-00052K-Kd for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:20:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySQs-00051D-Ld for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:20:20 -0400 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 1rySQX-0003WP-Tf for guix-patches@gnu.org; Sun, 21 Apr 2024 04:19:57 -0400 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rySQV-0001t0-JY for guix-patches@gnu.org; Sun, 21 Apr 2024 04:19:57 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 2CE711380759 for ; Sun, 21 Apr 2024 04:19:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 21 Apr 2024 04:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to; s=fm1; t=1713687594; x=1713773994; bh=scWp0585IsfBDTALSmV+r iyKtnRXD6r7JUMcs/oRwUE=; b=sq4GQ0O0dWImYZ39Wlsn0aY6IJmnPQERh3SaU dwIiAlsijCfG+6RN4U1/Vk9tFoyX78GM9TW8W+73kbtWfIK5icxpubVSlrfE8Khi 3mw78Q0hfRr9OcHyiUVR/bPJdUDZnuxxvFijR8dYs1+RuQbZAjOKF+hLxk5+s5vZ ZhRMWO5OYapb7k35Vye7yxgNIxxMV2j0je1Hqx8uKuwfrJaMZBF//ALDdHsR6xm2 k56H6wa86UP4CngutpZgCSoq2X/6h02ESvwUDkqVoWrpocEMmalHbIDghCucLG6U AeBVIBuzNXxQ2gYP80NZ5s75+9fwiB2MUqAxD50+wpvDQ7qLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1713687594; x=1713773994; bh=scWp0585IsfBDTALSmV+riyKtnRX D6r7JUMcs/oRwUE=; b=NOGEcWg50+JtvoZLpFhOKaEKa+wM8YMPlCbxAULhp0Q5 l8gFI1WXoAZH12VpzlJJpQ1nmEyS2N4WGUFEeDyhraiZEZA6LU+ty15So8v0v56q OqtD+NZKxDcr2Su8vXXBFMrtguDUXliAyJumPpxv2vc+DQ6RyFhR15SixsnGWlTL VqG7WvDqjFsrCB7WgAUlB6crY8ngKzOpSfgmbo7K4GiLRZbiOyxa2YqFLOs19OsN 1gvUunl+Tw7yrlgWzebkhp0SbZE/WRQJ8KrQxX2phT6MtAi16lXJuDKQbZJaKRzn lMpxpcRE0eE6CoMV53EONleuTu4vFTe3FD1MhCMmjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpeeiheejhfejvedvueeghedugffhveduveefiedvtdevueehffelieeiffdtgeeuff enucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 21 Apr 2024 04:19:52 -0400 (EDT) From: dan To: guix-patches@gnu.org Subject: [PATCH 0/4] gnu: Add gamescope. Date: Sun, 21 Apr 2024 16:19:42 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=103.168.172.144; envelope-from=i@dan.games; helo=fout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) This patch series added gamescope, the micro-compositor for running games, and a few its dependencies. Noted that the latest gamescope release is 3.14.4, but it depends on the latest version of wayland-protocols. Besides, I noticed that libavif is updated in https://issues.guix.gnu.org/70395, but this is a patch series trying to update some KDE packages, and since a lot of packages depends on libavif, it would take some time for this update to landed in master. In the meantime, i added a new package libavif-1.0. dan (4): gnu: Add libliftoff. gnu: Add vkroots. gnu: Add libavif-1.0. gnu: Add gamescope. gnu/packages/freedesktop.scm | 23 ++++++++ gnu/packages/image.scm | 14 +++++ gnu/packages/vulkan.scm | 36 ++++++++++++ gnu/packages/wm.scm | 110 +++++++++++++++++++++++++++++++++++ 4 files changed, 183 insertions(+) base-commit: 38b88d710ea13ba024aed0543bc2862772cdb645 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 04:30:19 2024 Received: (at 70493) by debbugs.gnu.org; 21 Apr 2024 08:30:19 +0000 Received: from localhost ([127.0.0.1]:41428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySaW-0006AC-Pa for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:18 -0400 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]:49623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySaS-00068i-RV for 70493@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:14 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 7DDC31380A8A; Sun, 21 Apr 2024 04:29:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 21 Apr 2024 04:29:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1713688192; x=1713774592; bh=2oKRMCquoB8M+XP8kAUME6KfMkUsi0SVk2AXQJxNENk=; b= CmU/susCPheGJqJaMuE5csdBw9J2KIgawX94r57S5kSqIUZk/71xaGgVhBl5x+E4 cXQW9Ev+stC4SX3JNLTOecL7+mBGSc2rQnmz8N1hj+GjzvIq1tIOQfluHTe8N4K1 psa5I7evbjCoebi2XYv3zr0yURg9EZ8iB+IpHA/g6SuEbxf2bRyq7WmyFvZfzq0n dBm9JGy33WfLz+z7gaNoDlFOXl/FxR02Ih26XzsNWZyRQhpyCqA0zf581KeO6FP2 Rzq67q2YwrqgS42dlSvpSoyyAreeFLApNKbF3Wo9uRb9H56saA8pgW4N/jJw0sIV DR8DtSFtOv9CzT9tFdWMWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713688192; x= 1713774592; bh=2oKRMCquoB8M+XP8kAUME6KfMkUsi0SVk2AXQJxNENk=; b=T uy+4hclu2KiraP0S1wH92OelCXGcsKBeqNINxho5RY6F+4ZjKGXPn14jNqeBng6J XfYPIEkigqpSkwqJO/V4/cIC7aXiCgnW6i+0ia46+xf64V0c/90kQKefEfGN9ebz zvgh2z8cnwBxrZ8vCwdkdyshNiauj9DBwbjhqI4JFX9c6QUETWafy3P6c2DffQu0 hq4+tOC6KfKX1I6l2ZwB+AKFh+Ac2YEuqpRlG/ocKNe3KrUzRyeIZYRg36uNEm+l onO41uAmH790jocJ1vQFNoG2PwokyNbsKv7DJ7jd8WfLBfqUMFIyeFJEEXajQAA4 OqlH6YK/YCt6grEwtABQg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfgggtgfesth ekredtredtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffr rghtthgvrhhnpeegfefghedvfefgieffhffgtdffveevgeevueelkeejfeekjeffudegte dvgfeuueenucffohhmrghinhepfhhrvggvuggvshhkthhophdrohhrghenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvg hs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Apr 2024 04:29:50 -0400 (EDT) From: dan To: 70493@debbugs.gnu.org Subject: [PATCH 1/4] gnu: Add libliftoff. Date: Sun, 21 Apr 2024 16:29:29 +0800 Message-ID: <2625fe976febff8993347418635cf60dc12ab90b.1713687359.git.i@dan.games> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70493 Cc: john.kehayias@protonmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/freedesktop.scm (libliftoff): New variable. Change-Id: Ia66bb09db6b09c63fbc6223f58d6a0ebf6f4c546 --- gnu/packages/freedesktop.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 339297c087..d0c14e8077 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2023 Alex Devaure ;;; Copyright © 2023 Bruno Victal ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2024 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -3234,3 +3235,25 @@ (define-public waypipe "Waypipe is a proxy for Wayland clients, with the aim of supporting behavior like @samp{ssh -X}.") (license license:expat))) + +(define-public libliftoff + (package + (name "libliftoff") + (version "0.4.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/emersion/libliftoff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "1ikjp638d655ycaqkdnzhb12d29kkbb3a46lqhbhsfc8vsqj3z1l")))) + (build-system meson-build-system) + (inputs (list libdrm)) + (native-inputs (list pkg-config)) + (home-page "https://gitlab.freedesktop.org/emersion/libliftoff") + (synopsis "Lightweight KMS plane library") + (description "libliftoff eases the use of KMS planes from userspace +without standing in your way. Users create \"virtual planes\" called layers, +set KMS properties on them, and libliftoff will pick hardware planes for these +layers if possible.") + (license license:expat))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 04:30:20 2024 Received: (at 70493) by debbugs.gnu.org; 21 Apr 2024 08:30:21 +0000 Received: from localhost ([127.0.0.1]:41432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySaZ-0006Ab-29 for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:20 -0400 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:42735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySaV-00069I-WF for 70493@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:17 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 896D911400DB; Sun, 21 Apr 2024 04:29:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 21 Apr 2024 04:29:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1713688195; x= 1713774595; bh=Op6MPgTzAkW8DOey22G62EM9ofAClSwGkkctN6g5pp0=; b=R 7k/LY/japN5hoBhHn5SbcgsqQOMwFqeQdXWYfBspvE7mfWinSL74UgtJy5RCMYYX a2VYQzvVbvuT+yKklYcWR0/5079ZjYUxJTu4s67vyQgCwKouv/sq5JNLGae94wz4 jU6GHgiU6TSX96rLxT3bk/gxJYLPp5lJc/0c1mow/eFM+FPcAoCaWStJy4xkBR2x 8+cCn1M21SIptLys+QtHVNAOTGlf6Y+LQ+RAPlOTgGQFwQ83Xekc68fR2ZKp+rm1 4bwyKQQeJc8+N/FMhBsZ/Alm1js3v03aKFSQmiVLCi6fkRmDiXp/927g5+OoCYQK DCR8fjTxDpiW0nbtOEkUQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713688195; x= 1713774595; bh=Op6MPgTzAkW8DOey22G62EM9ofAClSwGkkctN6g5pp0=; b=H 3xIyBCphmNXhd9PUwSBKWdClWfshKgXV4uwZfMfqS+4Os3MuebJIHy9L6R7qrV6U Xpw3n2tht0sfMjxEwxHpTUYQroRdNItzNVPoMlqQSXCifuy2YclGROpOlrN6smk+ 4+Cv0FJ/x63J8/1jtCLMlIuKAWmvp01sDNjBWCk//Nrni0ZMHcqylLzK5DK7+NeA exhs7KRt80ajaBOAMRr1n7nyT7GZCTV1CMdOHzkmgW9Ehln9q729QvenPLeJ6ykw p/i1YTjDKXEQeTu6DLLOQb+B4WyamEZWHGWDrZG3r9LGfb77ruu0K8BBajbktA3H bBfMOgHPzHFxquLTBEGQg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgr thhtvghrnhepvdekvdelueffhfeffeffueduieehgfdvjedvtddvkeehvdffgeevgffgff fhgeejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Apr 2024 04:29:52 -0400 (EDT) From: dan To: 70493@debbugs.gnu.org Subject: [PATCH 2/4] gnu: Add vkroots. Date: Sun, 21 Apr 2024 16:29:30 +0800 Message-ID: <232dbbe3210c63a837456952493d54dd0986ce9a.1713687359.git.i@dan.games> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70493 Cc: john.kehayias@protonmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/vulkan.scm (vkroots): New variable. Change-Id: I57dfea58254c9bcf001d2052156f2c17dde109c4 --- gnu/packages/vulkan.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index 23d0c72ee3..f3c6e619a8 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -32,6 +32,7 @@ (define-module (gnu packages vulkan) #:use-module (guix gexp) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages autotools) #:use-module (gnu packages bison) @@ -634,3 +635,38 @@ (define-public vulkan-utility-libraries (synopsis "Utility libraries for Vulkan developers") (description "Utility libraries for Vulkan developers.") (license license:asl2.0))) + +(define-public vkroots + (let ((commit "d5ef31abc7cb5c69aee4bcb67b10dd543c1ff7ac") + (revision "0")) + (package + (name "vkroots") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Joshua-Ashton/vkroots") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g2mh8l0xzxzr4yjyafzv76n7jk9043dcbf5mpqwpwmjx88m5nc0")))) + (build-system meson-build-system) + (arguments (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-vulkan + (lambda _ + (substitute* "gen/make_vkroots" + (("\\.\\.") (getcwd))))) + (add-before 'install 'gen-vkroots + (lambda _ + (invoke "python3" + "../source/gen/make_vkroots" + "-x" + (string-append + #$(this-package-native-input "vulkan-headers") + "/share/vulkan/registry/vk.xml"))))))) + (native-inputs (list python vulkan-headers)) + (home-page "https://github.com/Joshua-Ashton/vkroots") + (synopsis "Simple method of making Vulkan layers") + (description "vkroots is a framework for writing Vulkan layers that +takes all the complexity away from you.") + (license license:expat)))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 04:30:34 2024 Received: (at 70493) by debbugs.gnu.org; 21 Apr 2024 08:30:35 +0000 Received: from localhost ([127.0.0.1]:41437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySan-0006D4-Ak for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:34 -0400 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:33297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySaX-00069W-NM for 70493@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:19 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 5DB4D11400DD; Sun, 21 Apr 2024 04:29:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 21 Apr 2024 04:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1713688197; x=1713774597; bh=p0msGgI7y+B0hZzOmgTTHpYr+doKrbiWD0t7xjtY51c=; b= xASIwDEgfC4a2dg3brdfBHpze8w1b+XRYxp749nYcEggcS1zxon9pmIk++yYWjXp e8u9CHmjDNIBeR5i9IosnVkCYP9eQmsdAziVd6LXipy1s3abWcyVxDqH+k/Xffa4 fk+VDvWIzXZvucjO048xH7A9SoozhdE1OR/8J8OrECLmh032E7DuO0mLK9GkzocD GsDIaqsS10qPqOMQOU33Qu43/Wf9HY4QiZvH/XqIiL7JevaHe+YyBBegqRUwCjUk gDbsSbgsomWIiZNNK7JVLoqrfBiuy0q1KcULg7UuqHiKgrWGCRGXh1OuC3kzdlot wvXEWLVi7c2Nu4Q2NzZdEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713688197; x= 1713774597; bh=p0msGgI7y+B0hZzOmgTTHpYr+doKrbiWD0t7xjtY51c=; b=h oBUgzLNIaBMnG/TIp8cH9GGpbLITf+J+LNvHFq8i4sSB+BFRZHM2KIDS6fJm4jL6 0wU29C6qS2dyvI/x/4BhFq4SmE+ThIsA+rDVmDPDjnlRW104utEI4FZJegJNCT6i 0teQr7cB2s56nDlBnupT9PpaM0pTTFiay79lvVeoR4pRAbovsv957Cn7kNLxQhkG 1gAuFixfMkAW0xemKtXndWmFbfypCaICgAo6DSIT2wZBFBvowmLEL4TVpZanG6XE ZYEg1TzAJKA95ejE3pS+XN7Bvqa5eLZVJWVPGO+MeYffsy+cuKP2JQRTOTibuI5U NxjRFvGtfzDo9HZqWIyQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfgggtgfesth ekredtredtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffr rghtthgvrhhnpeehhefhieetveeuledtudetheehgfelueeigeekjeduieevveeuteeuhe fftdevjeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Apr 2024 04:29:55 -0400 (EDT) From: dan To: 70493@debbugs.gnu.org Subject: [PATCH 3/4] gnu: Add libavif-1.0. Date: Sun, 21 Apr 2024 16:29:31 +0800 Message-ID: <97e94aa7938b7108c0b2e09e4664c831fb91fe57.1713687359.git.i@dan.games> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 70493 Cc: john.kehayias@protonmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/image.scm (libavif-1.0): New variable. Change-Id: Ie3c9dc1964ea0d0a97cde4e8802f8dd1308f0e0b --- gnu/packages/image.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index fae45363ad..5ed2acda8c 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -39,6 +39,7 @@ ;;; Copyright © 2023-2024 Nicolas Goaziou ;;; Copyright © 2023 Artyom V. Poptsov ;;; Copyright © 2024 chris +;;; Copyright © 2024 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -2544,6 +2545,19 @@ (define-public libavif (home-page "https://github.com/AOMediaCodec/libavif") (license (list license:bsd-2)))) +(define-public libavif-1.0 + (package + (inherit libavif) + (version "1.0.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AOMediaCodec/libavif") + (commit (string-append "v" version)))) + (file-name (git-file-name (package-name libavif) version)) + (sha256 + (base32 "0k72q7yvfdn92wkslyifw14319nm981a8r3kd84i4ylxmrkgi0zm")))))) + (define-public libheif (package (name "libheif") -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 04:30:37 2024 Received: (at 70493) by debbugs.gnu.org; 21 Apr 2024 08:30:37 +0000 Received: from localhost ([127.0.0.1]:41439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySao-0006DV-SY for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:37 -0400 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:58441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rySaa-00069n-7A for 70493@debbugs.gnu.org; Sun, 21 Apr 2024 04:30:24 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D633B1140085; Sun, 21 Apr 2024 04:29:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 21 Apr 2024 04:29:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1713688199; x=1713774599; bh=cDKSW7mXAkTX5IJ/yp1RsEihMM/Nkdu0qzpZmFRzq2s=; b= mWfpdxmg6xQlun7SeRvEMqrbWjh6r8Subh9KIOhxa8sZS5yKzIxeffoF3lTbJ8OR RYKVwWEgSO9VcMuetsklUAHRoUgZZEJbAQqcf68igXq53UTOpSW8DnmE6GCnrKU/ f6BndBcmrp6Ql8an5sVKOAO9WR9XU6IIuu5oJPcT/KVhuBspYKHPfIkAx/nqZi04 I0Tv3eO5LUavred96+ghcduS8iWtykAR0+74oLRnTVH76zD4CqzymlMC5jDzWLvt e6pLL/3ENJ0o+7ULrzHiywG9Sd3r01YrbdBNml1x2hQVA6g6CflJriB0i+ARGxGy ZvHef2CMMDYpH665NAJbtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1713688199; x= 1713774599; bh=cDKSW7mXAkTX5IJ/yp1RsEihMM/Nkdu0qzpZmFRzq2s=; b=A A5Z3szG1gdVnolCDEQu0R9JsYhOTYdij0fqkhDtp6hQH3cVeInoNxeU0Bj0L9Y6k 66ZdwE9pUrEqQ+lS59B82MZfqtbNgq1ue1skH8/ulFEk96eYK0lR1xYbJMYGj6mD q3io4Y3WkSCFAorn/WvaLvXRSz229TeQ+H/7jjgzx4RfyG59DEyA2pNQz0i/bIHP 06Cr9WjsmcnapK6KsGfwTikAxgdSodFqIhsv6pCZj42rHd6wSGiZ1PSVstVYGGNs FX8WXkVAi5EN2axQcJdVChQCkc7fSuXVQGgxtQCic/ufT3RO1iKhO9tTtjOT68lF 2RyqrirF2HBAYEQ8YTv4g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekjedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdludejmdenucfjughrpefhvf evufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepuggrnhcuoehisegurghn rdhgrghmvghsqeenucggtffrrghtthgvrhhnpeehhefhieetveeuledtudetheehgfelue eigeekjeduieevveeuteeuhefftdevjeenucffohhmrghinhepghhithhhuhgsrdgtohhm necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihesug grnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Apr 2024 04:29:57 -0400 (EDT) From: dan To: 70493@debbugs.gnu.org Subject: [PATCH 4/4] gnu: Add gamescope. Date: Sun, 21 Apr 2024 16:29:32 +0800 Message-ID: <0ca550e23940a3918fd7f42e9383ee188cbea9b5.1713687359.git.i@dan.games> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 70493 Cc: john.kehayias@protonmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/wm.scm (%gamescope-version): New variable. (reshade-for-gamescope): New variable. (gamescope): New variable. Change-Id: If86bc6127144854189f8fa66415f32bc80a26d6b --- gnu/packages/wm.scm | 110 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 2eecc0ed2a..8d816e2e28 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -70,6 +70,7 @@ ;;; Copyright © 2024 Ahmad Draidi ;;; Copyright © 2024 chris ;;; Copyright © 2024 Erik Eduardo Alonso Hernández +;;; Copyright © 2024 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -105,6 +106,7 @@ (define-module (gnu packages wm) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages bash) + #:use-module (gnu packages benchmark) #:use-module (gnu packages admin) #:use-module (gnu packages autotools) #:use-module (gnu packages base) @@ -142,6 +144,7 @@ (define-module (gnu packages wm) #:use-module (gnu packages logging) #:use-module (gnu packages lua) #:use-module (gnu packages man) + #:use-module (gnu packages maths) #:use-module (gnu packages mpd) #:use-module (gnu packages pciutils) #:use-module (gnu packages music) @@ -155,12 +158,15 @@ (define-module (gnu packages wm) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages sdl) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) + #:use-module (gnu packages stb) #:use-module (gnu packages suckless) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils) #:use-module (gnu packages time) + #:use-module (gnu packages vulkan) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) @@ -3856,3 +3862,107 @@ (define-public yambar-wayland for short) for X11 and Wayland, that goes to great lengths to be both CPU and battery efficient---polling is only done when absolutely necessary.") (license license:expat))) + +(define %gamescope-version "3.14.2") + +(define reshade-for-gamescope + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Joshua-Ashton/reshade") + (commit "9fdbea6892f9959fdc18095d035976c574b268b7"))) + (file-name (git-file-name "reshade-for-gamescope" %gamescope-version)) + (sha256 + (base32 "1par0ay973l0bvlz0fsg3v1fxgrnn888yc0hx3ikkyc0jbbf59bg")))) + +(define-public gamescope + (package + (name "gamescope") + (version %gamescope-version) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ValveSoftware/gamescope") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0x7gh1rr2ismqfkaa4wm7025acjpgmims41iwzdcps5pg8nxmmhh")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Dpipewire=enabled" + "-Denable_openvr_support=false" + "-Dforce_fallback_for=[]" + (string-append "-Dc_args=-DHWDATA_PNP_IDS=\"" + #$(this-package-native-input "hwdata") + "/share/hwdata/pnp.ids\"")) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-deps + (lambda _ + (substitute* "src/reshade_effect_manager.cpp" + (("/usr") #$output)) + (substitute* "src/meson.build" + ;; patch stb + (("dependency\\('stb'\\)") + (format #f "declare_dependency(include_directories: ['~a'])" + (string-join + '#$(map (lambda (label) (this-package-native-input label)) + (list "stb-image" + "stb-image-resize" + "stb-image-write")) + "','"))) + ;; patch libdisplay-info + (("< 0.2.0") + (string-append "<= " #$(package-version (this-package-input "libdisplay-info")))) + (("reshade/") (string-append #$reshade-for-gamescope "/")) + (("../thirdparty/SPIRV-Headers") #$(this-package-native-input "spirv-headers")))))))) + (inputs + (list glm + libavif-1.0 + libcap + libdisplay-info + libdrm + libinput + libliftoff + libx11 + libxcomposite + libxcursor + libxdamage + libxext + libxkbcommon + libxmu + libxrender + libxres + libxt + libxtst + pipewire + sdl2 + vulkan-loader + wayland + wlroots)) + (native-inputs + (list benchmark + ;; Lazily resolve the gcc-toolchain-12 to avoid a circular dependency. + (module-ref (resolve-interface '(gnu packages commencement)) + 'gcc-toolchain-12) + glslang + `(,hwdata "pnp") + pkg-config + stb-image + stb-image-resize + stb-image-write + spirv-headers + vkroots + vulkan-headers + wayland-protocols)) + (home-page "https://github.com/ValveSoftware/gamescope") + (synopsis "Micro-compositor for running games") + (description + "gamescope is a micro-compositor for running games. Its goal is to +provide an isolated compositor that is tailored towards gaming and supports +many gaming-centric features such as: +@itemize +@item Spoofing resolutions. +@item Upscaling. +@item Limiting framerates. +@end itemize") + (license license:bsd-2))) -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 18:47:59 2025 Received: (at 70493) by debbugs.gnu.org; 11 May 2025 22:47:59 +0000 Received: from localhost ([127.0.0.1]:46158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uEFSg-0000A9-LD for submit@debbugs.gnu.org; Sun, 11 May 2025 18:47:59 -0400 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:54748) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uEFSc-000097-99 for 70493@debbugs.gnu.org; Sun, 11 May 2025 18:47:56 -0400 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7cadd46ea9aso622033985a.1 for <70493@debbugs.gnu.org>; Sun, 11 May 2025 15:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747003668; x=1747608468; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pCMnfeRYrBy7nLlDV3KO0d35EY/C0+dLre8YtG4xi54=; b=bzgZYmEabUjI8CFMnmQQSL5ZgfPc3ksv4rHeQ5RCgfiNeQeWY5KWZtrqbvTHF9v13h 3X8mGevp5Vt07wZcwm6udV4UndnPqYTMpEWSs6muqeg4wP/VdrBXbXFkgkwG6kGgcEhq 0UzEVzFmO8syJwYg8wj0Cq6ZkYcyZS4knILUncVxntWWExPwNuznFScwxH8dGLJK/W7Z y+7pQ+NsdGrb6n6lTm3YUBVqeE/h85thoRxky7Q7s1NkcXJ1SWfmVyinIzmXlsiLbpxH Dw0Zr0u6zlGz3zABg/yqq2lcjWJ/mghgh+U4xSBz9mYCz9w3zEVTjsSRkFzw14L8qD2o 2B7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747003668; x=1747608468; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pCMnfeRYrBy7nLlDV3KO0d35EY/C0+dLre8YtG4xi54=; b=eiiGoVrdFMDrXgWkxnBFDdv6frZuUeAI81OIJrpJ+sFZD/OsrOyMW22yx/ueQYE23b Ehv7C/k8MW2HaxyfbPBVLOYmAIDpgSzvVSaqq5z0s8hCDvWIxkW4IUGXxp8SojsQMebU B7I5/wPivXZ0M5VkN/aJn9/20BKY0UZSdvdFxeh9sE09mnwexJKY9HHHr8OgduYV+ap+ gI4JE8yKLdMtBEScftcYt2m+ZBdPjeyAu73SZAugiZKLk32gECtIgYCPEEnY/cGWI/zW 0VeL0wkGxWJLmKAM6nWTXtu7ccdidcfK0utUlMxciYjCJcKnzgSAHxxPVqVRkUM0aKGa mnZQ== X-Gm-Message-State: AOJu0YzwXRlBGM1w1pCRxeuNFAfPTfTcuxudg0Xr9P/Eqy78MqNHtgSp dDRFY0+K8c14lDfNoKSQBV+yvBFHzE9JPTbXz0tcNs5LWX8UK0lypt86ag== X-Gm-Gg: ASbGncvK8D2EAUKlPQVFnAz4AtcuEc/7BmwFqBfAVm1zVUzjobnS/WGG96pInFIATKj sWJ1jDdGl8HIET5XBbzteNPKrOAPaHyFYB3jIERIWcu2YOqmeYM/PyMc1eoL2/xzp+fHsNI2QGc +XP8M+rtUdxKJ5v24hKu7WZ3Qu9aH8NkUh2JKRKzzL6zF5Ph0nFsL+4B3etu8Eyf2i+GdzFa7O+ EfR5P7PrTcXTt2djh0bcprRkpRVJDclVVcS8+amgbu5OOBBVojBCkb7AEEFtaExiCLRKza1eL7B f8R/j2JU7TRXYR8KbAmTzIl1gFaVHkWEwPXFF/QfRRTDjA== X-Google-Smtp-Source: AGHT+IE3750gDqWzj3KCB5as71yI3nJgrhrp3uAx+11cbLZN+r15Yh4C190C7hapQq6vE5qzjSBe9w== X-Received: by 2002:a05:620a:4713:b0:7c7:827b:46bf with SMTP id af79cd13be357-7cd01157860mr1544479885a.39.1747003667869; Sun, 11 May 2025 15:47:47 -0700 (PDT) Received: from localhost.localdomain ([2600:4808:a053:1800::7c1b]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7cd00f4e1a5sm442933885a.13.2025.05.11.15.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 May 2025 15:47:46 -0700 (PDT) From: aurtzy To: 70493@debbugs.gnu.org Subject: [PATCH v2] gnu: Add gamescope. Date: Sun, 11 May 2025 18:40:39 -0400 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: dan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: dan * gnu/packages/wm.scm (%gamescope-version, libliftoff-for-gamescope, reshade-for-gamescope, vkroots-for-gamescope, wlroots-for-gamescope, gamescope): New variables. Change-Id: If86bc6127144854189f8fa66415f32bc80a26d6b Co-authored-by: aurtzy Co-authored-by: Demis Balbach --- Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: minikn.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (aurtzy[at]gmail.com) X-Debbugs-Envelope-To: 70493 Cc: aurtzy , Demis Balbach , dan X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) From: dan * gnu/packages/wm.scm (%gamescope-version, libliftoff-for-gamescope, reshade-for-gamescope, vkroots-for-gamescope, wlroots-for-gamescope, gamescope): New variables. Change-Id: If86bc6127144854189f8fa66415f32bc80a26d6b Co-authored-by: aurtzy Co-authored-by: Demis Balbach --- Hey, (Coming from: ) Sorry about the long delay! Finally got around to looking at this again. I've attached a v2 with our patches combined in addition to any updates since then, with all notable changes from v1 listed below. This depends on a pending patch to add stb-image-resize [1]. Changes from dan's v1: - Update gamescope version to 3.16.4. - Drop libavif-1.0 patch; we can use libavif which is updated, now. - Convert libliftoff and vkroots patches to libliftoff-for-gamescope and vkroots-for-gamescope due to upstream relying on unstable features and strongly recommending against using different versions [2]. Also subject wlroots to this treatment. - Use origin snippet to add pinned submodule/dependency sources. - Remove HWDATA_PNP_IDS configure flag, since (IIUC) hwdata outputs have since been merged into the default "out" output which made pkgconfig able to automatically find hwdata files. - Add a 'patch-loader-path phase to fix an error when starting gamescope due to "Failed to load vulkan module" (related issue [3]). - Add a 'patch-version phase that patches in version number instead of trying to execute git to infer version from tag. - Opt for patching stb via wrap file instead of meson.build which should (probably) be less brittle. - Drop libdisplay-info patch, since versions up to 0.3.0 are accepted now. - Use gcc instead of gcc-toolchain (toolchain version doesn't seem to be needed?). Also use newer version (gcc-14) since gamescope 3.16.4 would fail to build without at least gcc-13. - Include various additional inputs that are searched for during the build. Related side note: I've managed to get gamescope with the "nice" capability working with the following services (some personal config stuff omitted so it can work for others; source here [4]), although I'm still trying to figure out if anything can be done about removing a hack that's currently needed: #+begin_src scheme ;; gamescopereaper needs to be available in PATH. (list (simple-service 'name profile-service-type (list gamescope)) (simple-service 'name privileged-program-service-type (list (privileged-program (program (file-append gamescope "/bin/gamescope")) (capabilities "cap_sys_nice=eip")))) ;; HACK: Using privileges causes gamescope to not inherit ;; environment, so it fails an attempt to search for needed ;; vulkan files. Conveniently provide them at this location, ;; which gamescope searches by default. (simple-service 'name etc-service-type `(("vulkan" ,(file-append mesa "/share/vulkan"))))) #+end_src [1] https://issues.guix.gnu.org/78294 [2] https://github.com/ValveSoftware/gamescope/commit/7741cd587fa2274989f3307a3c6f23ab08e98460 [3] https://issues.guix.gnu.org/71109 [4] https://github.com/aurtzy/guix-config/blob/54eeb0a1587a90b4c59ae88e96c1609ba6cebeba/modules/my-guix/mods/entertainment.scm#L70 Cheers, aurtzy gnu/packages/wm.scm | 182 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 181 insertions(+), 1 deletion(-) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 66dd5f2035..6d01066570 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -81,6 +81,8 @@ ;;; Copyright © 2025 Tomáš Čech ;;; Copyright © 2025 Ricardo Wurmus ;;; Copyright © 2025 Junker +;;; Copyright © 2022 Demis Balbach +;;; Copyright © 2025 aurtzy ;;; ;;; This file is part of GNU Guix. ;;; @@ -117,6 +119,7 @@ (define-module (gnu packages wm) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages bash) + #:use-module (gnu packages benchmark) #:use-module (gnu packages admin) #:use-module (gnu packages autotools) #:use-module (gnu packages base) @@ -179,8 +182,10 @@ (define-module (gnu packages wm) #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages regex) + #:use-module (gnu packages sdl) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) + #:use-module (gnu packages stb) #:use-module (gnu packages suckless) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils) @@ -189,7 +194,8 @@ (define-module (gnu packages wm) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) - #:use-module (gnu packages xorg)) + #:use-module (gnu packages xorg) + #:use-module (srfi srfi-26)) (define-public bspwm (package @@ -4419,3 +4425,177 @@ (define-public scenefx "A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects.") (license license:expat))) + +;; Upstream strongly recommends using some of its pinned dependencies due to +;; relying on unstable features; these should be checked when updating +;; gamescope. See: +;; +(define %gamescope-version "3.16.4") + +(define libliftoff-for-gamescope + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.freedesktop.org/emersion/libliftoff.git") + (commit "8b08dc1c14fd019cc90ddabe34ad16596b0691f4"))) + (file-name (git-file-name "libliftoff-for-gamescope" %gamescope-version)) + (sha256 (base32 "163g8ndsbma7acy2k9mrnvlpb7yi4431hgkx1gygkafgwpq1ii1x")))) + +(define reshade-for-gamescope + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Joshua-Ashton/reshade") + (commit "696b14cd6006ae9ca174e6164450619ace043283"))) + (file-name (git-file-name "reshade-for-gamescope" %gamescope-version)) + (sha256 + (base32 "1zvhf3pgd8bhn8bynrsh725xn1dszsf05j8c9g6zabgv7vnz04a5")))) + +(define vkroots-for-gamescope + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Joshua-Ashton/vkroots") + (commit "5106d8a0df95de66cc58dc1ea37e69c99afc9540"))) + (file-name (git-file-name "vkroots-for-gamescope" %gamescope-version)) + (sha256 (base32 "0hrp0xqq93552ipw2bmryixgm1aywnz49xagsx5rwzg2d0hwa0aa")))) + +(define wlroots-for-gamescope + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Joshua-Ashton/wlroots.git") + (commit "4bc5333a2cbba0b0b88559f281dbde04b849e6ef"))) + (file-name (git-file-name "wlroots-for-gamescope" %gamescope-version)) + (sha256 (base32 "14m9j9qkaphzm3g36im43b6h92rh3xyjh7j46vw9w2qm602ndwcf")))) + +(define-public gamescope + (package + (name "gamescope") + (version %gamescope-version) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ValveSoftware/gamescope") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "09h7046vwqn0w3kv1zaij4h3rcrvs1r2qlm0vva3mk3gg44fnhjl")) + (modules '((guix build utils) + (ice-9 match))) + (snippet + #~(begin + ;; Add some dependencies to source tree where they're expected. + (for-each (match-lambda + ((source dest) + (copy-recursively source dest))) + '((#$libliftoff-for-gamescope "subprojects/libliftoff") + (#$reshade-for-gamescope "src/reshade") + (#$vkroots-for-gamescope "subprojects/vkroots") + (#$wlroots-for-gamescope "subprojects/wlroots"))))))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags #~(list "-Dpipewire=enabled" + "-Denable_openvr_support=false") + #:modules '((guix build meson-build-system) + (guix build utils) + (srfi srfi-26)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-usr-dir + (lambda _ + (substitute* "src/reshade_effect_manager.cpp" + (("/usr") #$output)))) + (add-after 'unpack 'patch-loader-path + ;; "Failed to load vulkan module" error occurs without this patch. + ;; Related issue: https://issues.guix.gnu.org/71109 + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/rendervulkan.cpp" + (("dlopen\\( \"libvulkan\\.so") + (string-append "dlopen( \"" + (search-input-file + inputs "/lib/libvulkan.so")))))) + (add-after 'unpack 'patch-version + (lambda _ + (substitute* "src/meson.build" + (("^vcs_tag = .*$") + (string-append + "vcs_tag = '" #$(package-version this-package) "'\n"))))) + (add-after 'unpack 'patch-stb + (lambda _ + (let ((stb-files-dir #+(directory-union + "stb" + (map (cut this-package-native-input <>) + (list "stb-image" + "stb-image-write" + "stb-image-resize"))))) + (copy-recursively (string-append stb-files-dir "/include") + "subprojects/stb")) + (copy-recursively "subprojects/packagefiles/stb" + "subprojects/stb") + (call-with-output-file "subprojects/stb.wrap" + (cut format <> "\ +[wrap-file] +directory = stb +")))) + (add-after 'unpack 'patch-spirv-headers + (lambda _ + (substitute* "src/meson.build" + (("../thirdparty/SPIRV-Headers") + #$(this-package-native-input "spirv-headers")))))))) + (native-inputs (list gcc-14 + glslang + pkg-config + python-3 + spirv-headers + stb-image + stb-image-write + stb-image-resize + vulkan-headers)) + (inputs (list benchmark + glm + hwdata + lcms + libavif + libdecor + libdisplay-info + libdrm + libei + libinput + libseat + libx11 + libxcomposite + libxcursor + libxdamage + libxext + libxkbcommon + libxmu + libxrender + libxres + libxt + libxtst + libxxf86vm + luajit + pipewire + pixman + sdl2 + vulkan-loader + xcb-util-wm + xcb-util-errors + xorg-server-xwayland + wayland + wayland-protocols)) + (home-page "https://github.com/ValveSoftware/gamescope") + (synopsis "Micro-compositor for running games") + (description + "gamescope is a micro-compositor for running games. Its goal is to +provide an isolated compositor that is tailored towards gaming and supports +many gaming-centric features such as: +@itemize +@item Spoofing resolutions. +@item Upscaling. +@item Limiting framerates. +@end itemize") + (license license:bsd-2))) base-commit: 8635dad843d299497bd46e036266a8b2a2abff11 -- 2.49.0