* [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input.
@ 2021-07-07 3:18 Matthew James Kraai
2021-07-07 14:20 ` Nicolas Goaziou
2021-07-07 23:56 ` Matthew James Kraai
0 siblings, 2 replies; 6+ messages in thread
From: Matthew James Kraai @ 2021-07-07 3:18 UTC (permalink / raw)
To: 49450; +Cc: Matthew James Kraai
* gnu/packages/emacs-xyz.scm (emacs-deadgrep)[propagated-inputs]: Add
ripgrep.
---
gnu/packages/emacs-xyz.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Add ripgrep as propagated-input, as is done for emacs-ripgrep and emacs-rg.
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9591a4e6e7..029b20ee72 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -20805,7 +20805,8 @@ accept and reject GitHub pull requests.")
(propagated-inputs
`(("emacs-dash" ,emacs-dash)
("emacs-s" ,emacs-s)
- ("emacs-spinner" ,emacs-spinner)))
+ ("emacs-spinner" ,emacs-spinner)
+ ("ripgrep" ,ripgrep)))
(home-page "https://github.com/Wilfred/deadgrep")
(synopsis "Frontend for @code{ripgrep}")
(description "This package provides an Emacs interface for performing
--
2.32.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input.
2021-07-07 3:18 [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input Matthew James Kraai
@ 2021-07-07 14:20 ` Nicolas Goaziou
2021-07-07 15:42 ` Matthew Kraai
2021-07-07 23:56 ` Matthew James Kraai
1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2021-07-07 14:20 UTC (permalink / raw)
To: Matthew James Kraai; +Cc: 49450
Hello,
Matthew James Kraai <kraai@ftbfs.org> writes:
> * gnu/packages/emacs-xyz.scm (emacs-deadgrep)[propagated-inputs]: Add
> ripgrep.
> ---
> gnu/packages/emacs-xyz.scm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Add ripgrep as propagated-input, as is done for emacs-ripgrep and
> emacs-rg.
I think ripgrep should be an input. Both emacs-ripgrep and emacs-rg
needs to be fixed, too.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input.
2021-07-07 14:20 ` Nicolas Goaziou
@ 2021-07-07 15:42 ` Matthew Kraai
2021-07-07 15:53 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Matthew Kraai @ 2021-07-07 15:42 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 49450
Hi Nicolas,
I was trying to ensure that when emacs-deadgrep is installed, ripgrep is also installed. The former doesn’t need the latter to build but does require it at runtime. Isn’t propagated-inputs the right field for that?
Sent from my iPhone
> On Jul 7, 2021, at 7:20 AM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>
> Hello,
>
> Matthew James Kraai <kraai@ftbfs.org> writes:
>
>> * gnu/packages/emacs-xyz.scm (emacs-deadgrep)[propagated-inputs]: Add
>> ripgrep.
>> ---
>> gnu/packages/emacs-xyz.scm | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> Add ripgrep as propagated-input, as is done for emacs-ripgrep and
>> emacs-rg.
>
> I think ripgrep should be an input. Both emacs-ripgrep and emacs-rg
> needs to be fixed, too.
>
> Regards,
> --
> Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input.
2021-07-07 15:42 ` Matthew Kraai
@ 2021-07-07 15:53 ` Nicolas Goaziou
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2021-07-07 15:53 UTC (permalink / raw)
To: Matthew Kraai; +Cc: 49450
Matthew Kraai <kraai@ftbfs.org> writes:
> I was trying to ensure that when emacs-deadgrep is installed, ripgrep
> is also installed. The former doesn’t need the latter to build but
> does require it at runtime. Isn’t propagated-inputs the right field
> for that?
Inputs are also available at runtime, but do not clobber user's profile.
It's preferable to use them, when it's reasonably possible.
In this case, it means you just need to modify the Elisp source to make
sure code points to the right ripgrep executable in the store. See,
e.g., emacs-flycheck-grammalecte.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input.
2021-07-07 3:18 [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input Matthew James Kraai
2021-07-07 14:20 ` Nicolas Goaziou
@ 2021-07-07 23:56 ` Matthew James Kraai
2021-07-08 7:33 ` bug#49450: " Nicolas Goaziou
1 sibling, 1 reply; 6+ messages in thread
From: Matthew James Kraai @ 2021-07-07 23:56 UTC (permalink / raw)
To: 49450; +Cc: Matthew James Kraai
* 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
--
2.32.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#49450: [PATCH] gnu: emacs-deadgrep: Add missing input.
2021-07-07 23:56 ` Matthew James Kraai
@ 2021-07-08 7:33 ` Nicolas Goaziou
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2021-07-08 7:33 UTC (permalink / raw)
To: Matthew James Kraai; +Cc: 49450-done
Hello,
Matthew James Kraai <kraai@ftbfs.org> writes:
> * gnu/packages/emacs-xyz.scm (emacs-deadgrep)[inputs]: Add ripgrep.
> [arguments]: Add configure phase to set deadgrep-executable to
> absolute path.
Thank you.
> + ;; .el is read-only in git.
> + (chmod "deadgrep.el" #o644)
I used `make-file-writable' function instead of chmod.
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-08 7:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-07 3:18 [bug#49450] [PATCH] gnu: emacs-deadgrep: Add missing input Matthew James Kraai
2021-07-07 14:20 ` Nicolas Goaziou
2021-07-07 15:42 ` Matthew Kraai
2021-07-07 15:53 ` Nicolas Goaziou
2021-07-07 23:56 ` Matthew James Kraai
2021-07-08 7:33 ` bug#49450: " Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.