From patchwork Wed Jul 7 23:56:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew James Kraai X-Patchwork-Id: 31221 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 3672F27BC81; Thu, 8 Jul 2021 00:57:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0718727BC78 for ; Thu, 8 Jul 2021 00:57:08 +0100 (BST) Received: from localhost ([::1]:57088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1HPf-0005nk-1f for patchwork@mira.cbaines.net; Wed, 07 Jul 2021 19:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1HPa-0005nc-4c for guix-patches@gnu.org; Wed, 07 Jul 2021 19:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1HPZ-0008TQ-To for guix-patches@gnu.org; Wed, 07 Jul 2021 19:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1HPZ-0000KJ-RM for guix-patches@gnu.org; Wed, 07 Jul 2021 19:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input. References: <20210707031810.27321-1-kraai@ftbfs.org> In-Reply-To: <20210707031810.27321-1-kraai@ftbfs.org> Resent-From: Matthew James Kraai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Jul 2021 23:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49450 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49450@debbugs.gnu.org Cc: Matthew James Kraai Received: via spool by 49450-submit@debbugs.gnu.org id=B49450.16257022001216 (code B ref 49450); Wed, 07 Jul 2021 23:57:01 +0000 Received: (at 49450) by debbugs.gnu.org; 7 Jul 2021 23:56:40 +0000 Received: from localhost ([127.0.0.1]:53746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1HPD-0000JY-NL for submit@debbugs.gnu.org; Wed, 07 Jul 2021 19:56:39 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:18498 helo=aws.ftbfs.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1HP9-0000JE-Go for 49450@debbugs.gnu.org; Wed, 07 Jul 2021 19:56:38 -0400 Received: from ip68-228-72-85.oc.oc.cox.net ([68.228.72.85] helo=localhost.localdomain) by aws.ftbfs.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1HP3-0008SS-Cq; Wed, 07 Jul 2021 23:56:29 +0000 From: Matthew James Kraai Date: Wed, 7 Jul 2021 16:56:24 -0700 Message-Id: <20210707235624.25962-1-kraai@ftbfs.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-deadgrep)[inputs]: Add ripgrep. [arguments]: Add configure phase to set deadgrep-executable to absolute path. --- gnu/packages/emacs-xyz.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9591a4e6e7..fd7f1b54d3 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -20802,10 +20802,25 @@ accept and reject GitHub pull requests.") (base32 "1vjhrq02l8gvdn2haygzq7277hnhjchs9xrfpcnh76gqip200gx4")))) (build-system emacs-build-system) + (inputs `(("ripgrep" ,ripgrep))) (propagated-inputs `(("emacs-dash" ,emacs-dash) ("emacs-s" ,emacs-s) ("emacs-spinner" ,emacs-spinner))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'configure + (lambda* (#:key inputs #:allow-other-keys) + (let ((ripgrep (assoc-ref inputs "ripgrep"))) + ;; .el is read-only in git. + (chmod "deadgrep.el" #o644) + ;; Specify the absolute file names of rg so that everything + ;; works out-of-the-box. + (emacs-substitute-variables + "deadgrep.el" + ("deadgrep-executable" + (string-append ripgrep "/bin/rg"))))))))) (home-page "https://github.com/Wilfred/deadgrep") (synopsis "Frontend for @code{ripgrep}") (description "This package provides an Emacs interface for performing