aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2022-07-04 15:33:15 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-07-04 15:33:15 +0200
commit44b832d7192bb9f30282f8601a491c3df0a553ff (patch)
treef1eab5006725a3bb1237a7769c7e333309a7e634 /gnu/packages
parent30f8183b9a86f53e8e7c86bc0517442f5689c8d0 (diff)
downloadguix-44b832d7192bb9f30282f8601a491c3df0a553ff.tar.gz
guix-44b832d7192bb9f30282f8601a491c3df0a553ff.zip
gnu: emacs-rg: Improve package style.
* gnu/packages/emacs-xyz.scm (emacs-rg)[arguments]: Use G-expressions and MAKE-FILE-WRITABLE.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/emacs-xyz.scm19
1 files changed, 10 insertions, 9 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 79324ab3a3..e19150400f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5060,15 +5060,16 @@ result.")
(base32 "1nxzplpk5cf6hhr2v85bmg68i6am96shi2zq7m83fs96bilhwsp5"))))
(build-system emacs-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-rg-path
- ;; Remove the path to ripgrep so that it works on remote systems.
- (lambda _
- (let ((file "rg.el"))
- (chmod file #o644)
- (emacs-substitute-sexps file
- ("(defcustom rg-executable" "rg"))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-rg-path
+ ;; Remove the path to ripgrep so that it works on remote systems.
+ (lambda _
+ (let ((file "rg.el"))
+ (make-file-writable file)
+ (emacs-substitute-sexps file
+ ("(defcustom rg-executable" "rg"))))))))
(propagated-inputs
(list emacs-s emacs-transient emacs-wgrep ripgrep))
(home-page "https://rgel.readthedocs.io/en/latest/")