mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: emacs-ag: Do not propagate the-silver-searcher.
* gnu/packages/emacs-xyz.scm (emacs-ag)[phases]: Add phase substitute-ag-path to avoid propagating ag. [inputs]: Add the-silver-searcher. [propagated-inputs]: Remove the-silver-searcher. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
3fbe68d9fc
commit
f64c80a538
1 changed files with 7 additions and 3 deletions
|
@ -3029,6 +3029,11 @@ (define-public emacs-ag
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'substitute-ag-path
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(make-file-writable "ag.el")
|
||||||
|
(emacs-substitute-variables "ag.el"
|
||||||
|
("ag-executable" (search-input-file inputs "/bin/ag")))))
|
||||||
(add-before 'install 'make-info
|
(add-before 'install 'make-info
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion "docs"
|
(with-directory-excursion "docs"
|
||||||
|
@ -3037,12 +3042,11 @@ (define-public emacs-ag
|
||||||
(lambda _
|
(lambda _
|
||||||
(install-file "docs/_build/texinfo/agel.info"
|
(install-file "docs/_build/texinfo/agel.info"
|
||||||
(string-append #$output "/share/info")))))))
|
(string-append #$output "/share/info")))))))
|
||||||
|
(inputs (list the-silver-searcher)) ; 'ag' executable
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-sphinx texinfo))
|
(list python-sphinx texinfo))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list emacs-dash
|
(list emacs-dash emacs-s))
|
||||||
emacs-s
|
|
||||||
the-silver-searcher)) ;'ag' executable
|
|
||||||
(home-page "https://github.com/Wilfred/ag.el")
|
(home-page "https://github.com/Wilfred/ag.el")
|
||||||
(synopsis "Front-end for ag (the-silver-searcher) for Emacs")
|
(synopsis "Front-end for ag (the-silver-searcher) for Emacs")
|
||||||
(description "This package provides the ability to use the silver
|
(description "This package provides the ability to use the silver
|
||||||
|
|
Loading…
Reference in a new issue