gnu: emacs-rg: Improve package style.

* gnu/packages/emacs-xyz.scm (emacs-rg)[arguments]: Use G-expressions and MAKE-FILE-WRITABLE.
This commit is contained in:
Nicolas Goaziou 2022-07-04 15:33:15 +02:00
parent 30f8183b9a
commit 44b832d719
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -5060,13 +5060,14 @@ (define-public emacs-rg
(base32 "1nxzplpk5cf6hhr2v85bmg68i6am96shi2zq7m83fs96bilhwsp5")))) (base32 "1nxzplpk5cf6hhr2v85bmg68i6am96shi2zq7m83fs96bilhwsp5"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-rg-path (add-after 'unpack 'remove-rg-path
;; Remove the path to ripgrep so that it works on remote systems. ;; Remove the path to ripgrep so that it works on remote systems.
(lambda _ (lambda _
(let ((file "rg.el")) (let ((file "rg.el"))
(chmod file #o644) (make-file-writable file)
(emacs-substitute-sexps file (emacs-substitute-sexps file
("(defcustom rg-executable" "rg")))))))) ("(defcustom rg-executable" "rg"))))))))
(propagated-inputs (propagated-inputs