From patchwork Tue Mar 12 09:56:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ignas_Lap=C4=97nas?= X-Patchwork-Id: 61683 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 4150927BBE9; Tue, 12 Mar 2024 13:09:40 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 391B127BBE2 for ; Tue, 12 Mar 2024 13:09:34 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk1sf-0004fB-Dq; Tue, 12 Mar 2024 09:09:21 -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 1rk12Y-0008K1-Oq for guix-patches@gnu.org; Tue, 12 Mar 2024 08:15:30 -0400 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 1rk12W-0002QA-D1 for guix-patches@gnu.org; Tue, 12 Mar 2024 08:15:30 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rk134-0003pg-4G for guix-patches@gnu.org; Tue, 12 Mar 2024 08:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69743] [PATCH] update grimshot package definition Resent-From: Ignas =?utf-8?q?Lap=C4=97nas?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Mar 2024 12:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69743 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69743@debbugs.gnu.org Cc: Ignas =?utf-8?q?Lap=C4=97nas?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171024572114676 (code B ref -1); Tue, 12 Mar 2024 12:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2024 12:15:21 +0000 Received: from localhost ([127.0.0.1]:41982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rk12K-0003oa-Da for submit@debbugs.gnu.org; Tue, 12 Mar 2024 08:15:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:34708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjysy-00051G-Te for submit@debbugs.gnu.org; Tue, 12 Mar 2024 05:57:32 -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 1rjysQ-0004VJ-2T for guix-patches@gnu.org; Tue, 12 Mar 2024 05:56:54 -0400 Received: from tritonas.serveriai.lt ([194.135.87.87]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjysN-0008VI-Rh for guix-patches@gnu.org; Tue, 12 Mar 2024 05:56:53 -0400 Received: from [88.119.78.42] (helo=localhost.localdomain) by tritonas.serveriai.lt with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rjysJ-0002W8-Jc; Tue, 12 Mar 2024 11:56:47 +0200 From: Ignas =?utf-8?q?Lap=C4=97nas?= Date: Tue, 12 Mar 2024 11:56:07 +0200 Message-ID: <7f2ba732c3b7dd12d937e70a5f643a09ac5bfa6d.1710237367.git.ignas@lapenas.dev> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Sender: ignas@lapenas.dev Received-SPF: pass client-ip=194.135.87.87; envelope-from=ignas@lapenas.dev; helo=tritonas.serveriai.lt X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 12 Mar 2024 08:15:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 12 Mar 2024 09:09:16 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Issue: https://issues.guix.gnu.org/69667 Grimshot was dropped from sway. https://github.com/swaywm/sway/issues/7405 The contrib was moved to: https://github.com/OctopusET/sway-contrib Package definition updated accordingly. Change-Id: I9ed9cdf7ce10fe878b4f2b931791ed22a63ff99a --- gnu/packages/wm.scm | 60 +++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 27 deletions(-) base-commit: 4003c60abf7a6e59e47cc2deb9eef2f104ebb994 diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index edbb3096b8..eeaee0cb68 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -3524,46 +3524,52 @@ (define-public avizo (define-public grimshot (package - (inherit sway) (name "grimshot") - (source (origin - (inherit (package-source sway)) - (snippet #~(delete-file "contrib/grimshot.1")))) + (version "1.9-contrib.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OctopusET/sway-contrib") + (commit version))) + (sha256 + (base32 "16fa8l81zjy25nsky1i525hb7zjprqz74mbirm9b76pvksschdv5")))) (build-system copy-build-system) (arguments - (list #:install-plan #~`(("grimshot" "bin/") - ("grimshot.1" "share/man/man1/")) - #:phases #~(modify-phases %standard-phases - (add-after 'unpack 'chdir - (lambda _ - (chdir "contrib"))) - (add-after 'chdir 'patch-script-dependencies - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "grimshot" - (("\\b(date|grim|jq|notify-send|slurp|swaymsg|wl-copy)\\b" - _ binary) - (search-input-file - inputs (string-append "bin/" binary)))))) - (add-after 'patch-script-dependencies 'build-man-page - (lambda _ - (with-input-from-file "grimshot.1.scd" - (lambda _ - (with-output-to-file "grimshot.1" - (lambda _ - (invoke "scdoc")))))))))) + (list + #:install-plan #~`(("grimshot" "bin/") + ("grimshot.1" "share/man/man1/")) + #:phases #~(modify-phases %standard-phases + (add-after 'chdir 'patch-script-dependencies + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "grimshot" + (("\\b(date|grim|jq|notify-send|slurp|swaymsg|wl-copy)\\b" + _ binary) + (search-input-file inputs + (string-append "bin/" binary)))))) + (add-after 'patch-script-dependencies 'build-man-page + (lambda _ + (with-input-from-file "grimshot.1.scd" + (lambda _ + (with-output-to-file "grimshot.1" + (lambda _ + (invoke "scdoc")))))))))) (native-inputs (list scdoc)) (inputs (list coreutils - grim jq libnotify slurp sway wl-clipboard)) + (propagated-inputs (list grim)) + (home-page "https://github.com/OctopusET/sway-contrib") (synopsis "Screenshot utility for the Sway window manager") - (description "Grimshot is a screenshot utility for @code{sway}. It provides + (description + "Grimshot is a screenshot utility for @code{sway}. It provides an interface over @code{grim}, @code{slurp} and @code{jq}, and supports storing the screenshot either directly to the clipboard using @code{wl-copy} or to a -file."))) +file.") + (license license:expat))) (define-public wld (let ((commit "6586736176ef50a88025abae835e29a7ca980126")