From patchwork Wed Nov 6 07:36:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 69918 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 80BF127BBE9; Wed, 6 Nov 2024 07:39:08 +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 6F86A27BBEB for ; Wed, 6 Nov 2024 07:39:07 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8acL-0008Il-A8; Wed, 06 Nov 2024 02:38:17 -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 1t8acB-0008Fs-Ts for guix-patches@gnu.org; Wed, 06 Nov 2024 02:38:09 -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 1t8acB-0003ml-Kr for guix-patches@gnu.org; Wed, 06 Nov 2024 02:38:07 -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=Dd9YOLOzm9xSW2h4xtniUzO8j257fyCbYwmUirdCU7Y=; b=rFYJexNjXBWrAQojz1pplPyqP7aFGdtpT+aGRtblS8tF2wdSNUvjhuDkMdqBKZRPGs7HwfW3ITVeiy4kEXqdkeAiyZW5cRcei3gIP6yqKzoM9fMgjTi6pRv1i8f/ETaKLUoqMVoEGBpIQsMCCHjUss7n0sby+w0aJ8LnDc+vt4gAbRP1W29p/1aLQNhyEQKxKBkBZQh4D09E8RZBDSs8iWe0i1OaiaNgM422QsxoxRrQA6PJgB0ZejrZIDSHiv4VsnV58+cXbRsCC1HbMS+jrzfEwerdTkslxPkPbk/KcvnbNYKOJxoSANCM09EIQj4rF3aQEM3iFUjuaMCSRQcreQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8acB-0000ef-ET for guix-patches@gnu.org; Wed, 06 Nov 2024 02:38:07 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74223] [PATCH 11/11] gnu: Add grimblast. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Nov 2024 07:38:07 +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 Received: via spool by 74223-submit@debbugs.gnu.org id=B74223.17308786392386 (code B ref 74223); Wed, 06 Nov 2024 07:38:07 +0000 Received: (at 74223) by debbugs.gnu.org; 6 Nov 2024 07:37:19 +0000 Received: from localhost ([127.0.0.1]:39120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8abP-0000cL-4t for submit@debbugs.gnu.org; Wed, 06 Nov 2024 02:37:19 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:43372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8abK-0000aa-LT for 74223@debbugs.gnu.org; Wed, 06 Nov 2024 02:37:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1730878633; 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=Dd9YOLOzm9xSW2h4xtniUzO8j257fyCbYwmUirdCU7Y=; b=Sxblj4qZJxD2irdvo5Kv2XspiEi6jcKwjrBRlEN4UrSA0OqjT1CA/dtZB1nrR0/p7cG4bl iMgrOkoaonlGJ34Lu2p6OUP3KaFMqf496ULK1pOlWaP0QK+A2+rdrd1Cqihmf+30mZeWxi fQxOZvBm6LP/O9yx5qHTi9Y2T7OPKzA+ism+XIVaVye3UmvUI4u/KCtbHnSBXDohbzj2fY VdG2jgbR+++CE2iftNA2rQC6feuzffFQi0rmWELWZgOVsAXOeTxVI1yaO35/EBWnSsvqk1 HLVeEFSFLQwB4Qo72OrK6uXi44lNgtA7apHNGEx/h0cSmkqBL30N/dgqq/OJtA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space Date: Wed, 6 Nov 2024 15:36:27 +0800 Message-ID: <53d47bb281db1f13db3b41105edde2b3788801af.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 * gnu/packages/wm.scm (grimblast): New variable. Change-Id: I38d8e0ff92e8724cec64d37d036ff307c96a2cc0 --- gnu/packages/wm.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 01a6677e9a..bbecbf47e2 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -3766,6 +3766,66 @@ (define-public avizo used for multimedia keys.") (license license:gpl3+))) +(define-public grimblast + (let ((commit "9d67858b437d4a1299be496d371b66fc0d3e01f6") + (revision "1")) + (package + (name "grimblast") + (version (git-version "0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hyprwm/contrib") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1v0v5j7ingx80b5zpyz8ilfhz0kh9dcssnx6iwwl45zzgp915cpv")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;No tests. + #:make-flags + #~(list (string-append "PREFIX=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'chdir + (lambda _ + (chdir "grimblast"))) + (add-after 'chdir 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "grimblast" + (((string-append "\\<(" (string-join + '("date" + "grim" + "slurp" + "hyprctl" + "hyprpicker" + "wl-copy" + "jq" + "notify-send") + "|") + ")\\>") + cmd) + (search-input-file + inputs (string-append "bin/" cmd))))))))) + (native-inputs (list scdoc)) + (inputs + (list coreutils-minimal + grim + jq + libnotify + slurp + hyprland + hyprpicker + wl-clipboard)) + (home-page "https://github.com/hyprwm/contrib") + (synopsis "Screenshot utility for Hyprland") + (description + "This package provides a Hyprland version of @code{grimshot} for +screenshoting.") + (license license:expat)))) + (define-public grimshot (package (name "grimshot")