me
/
guix
Archived
1
0
Fork 0

gnu: ripgrep: Install the manpage.

* gnu/packages/rust-apps.scm (ripgrep)[native-inputs]: Add asciidoc.
[arguments]: Add 'install-manpage phase. Import (ice-9 match).

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
master
Jakub Kądziołka 2020-02-09 22:51:09 +01:00 committed by Efraim Flashner
parent 113afb4990
commit 6e18b41eb7
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 19 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#:use-module (guix packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages documentation)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages tls)
@ -226,7 +227,24 @@ provides defaults for 80% of the use cases.")
("rust-termcolor" ,rust-termcolor-1.0))
#:cargo-development-inputs
(("rust-serde" ,rust-serde-1.0)
("rust-serde-derive" ,rust-serde-derive-1.0))))
("rust-serde-derive" ,rust-serde-derive-1.0))
#:modules ((ice-9 match)
(guix build cargo-build-system)
(guix build utils))
#:phases
(modify-phases %standard-phases
(add-after 'build 'install-manpage
;; NOTE: This is done before 'check so that there's only one output
;; directory with the man page.
(lambda* (#:key outputs #:allow-other-keys)
(match (find-files "target" "^rg\\.1$")
((manpage)
(install-file manpage (string-append
(assoc-ref outputs "out")
"/share/man/man1"))))
#t)))))
(native-inputs
`(("asciidoc" ,asciidoc)))
(home-page "https://github.com/BurntSushi/ripgrep")
(synopsis "Line-oriented search tool")
(description