[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: gnu: emacs-deadgrep: Improve package style.
From: |
guix-commits |
Subject: |
02/08: gnu: emacs-deadgrep: Improve package style. |
Date: |
Sun, 6 Nov 2022 16:47:00 -0500 (EST) |
ngz pushed a commit to branch master
in repository guix.
commit ab6fb3022debcb523cce5ae762ea58ca01f4c687
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Nov 6 22:32:32 2022 +0100
gnu: emacs-deadgrep: Improve package style.
* gnu/packages/emacs-xyz.scm (emacs-deadgrep)[arguments]: Use G-expressions.
<#:phases>: Use SEARCH-INPUT-FILE instead of ASSOC-REF.
---
gnu/packages/emacs-xyz.scm | 27 +++++++++++++--------------
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ab5f08a5db..5c6abdbcd2 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -23875,22 +23875,21 @@ accept and reject GitHub pull requests.")
(base32
"0bwf8gsqw7hsmacqd34piwgv066ijfclmxaigkvhvpac0lpsmi79"))))
(build-system emacs-build-system)
- (inputs (list ripgrep))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((ripgrep (search-input-file inputs "/bin/rg")))
+ ;; Specify the absolute file name of rg so that everything
+ ;; works out-of-the-box.
+ (emacs-substitute-variables "deadgrep.el"
+ ("deadgrep-executable" ripgrep))))))))
+ (inputs
+ (list ripgrep))
(propagated-inputs
(list emacs-dash emacs-s 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.
- (make-file-writable "deadgrep.el")
- ;; 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
- branch master updated (93d8aad521 -> 59ce4b8c54), guix-commits, 2022/11/06
- 04/08: gnu: emacs-ebdb: Update to 0.8.16., guix-commits, 2022/11/06
- 01/08: gnu: emacs-deadgrep: Update to 0.12., guix-commits, 2022/11/06
- 05/08: gnu: emacs-iter2: Update to 1.4., guix-commits, 2022/11/06
- 07/08: gnu: emacs-geiser-guile: Update to 0.28.0., guix-commits, 2022/11/06
- 03/08: gnu: emacs-deadgrep: Run tests., guix-commits, 2022/11/06
- 02/08: gnu: emacs-deadgrep: Improve package style.,
guix-commits <=
- 06/08: gnu: emacs-geiser: Update to 0.28., guix-commits, 2022/11/06
- 08/08: gnu: lagrange: Update to 1.13.8., guix-commits, 2022/11/06