mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: ripgrep: Enable the 'pcre2' feature.
* gnu/packages/rust-apps.scm (ripgrep)[arguments]: Add '#:cargo-build-flags' to specify the feature. Replace 'install phase. [native-inputs]: Add pcre2, pkg-config. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
6e18b41eb7
commit
d883e791b7
1 changed files with 16 additions and 2 deletions
|
@ -27,6 +27,7 @@ (define-module (gnu packages rust-apps)
|
|||
#:use-module (gnu packages crates-io)
|
||||
#:use-module (gnu packages documentation)
|
||||
#:use-module (gnu packages jemalloc)
|
||||
#:use-module (gnu packages pcre)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages tls)
|
||||
#:use-module (gnu packages version-control))
|
||||
|
@ -242,9 +243,22 @@ (define-public ripgrep
|
|||
(install-file manpage (string-append
|
||||
(assoc-ref outputs "out")
|
||||
"/share/man/man1"))))
|
||||
#t)))))
|
||||
#t))
|
||||
(replace 'install
|
||||
;; Adapted from (guix build cargo-build-system). The flags need to
|
||||
;; be passed to `cargo install' too, as otherwise it will build
|
||||
;; another binary, without the features.
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(mkdir-p out)
|
||||
(setenv "CARGO_TARGET_DIR" "./target")
|
||||
(invoke "cargo" "install" "--path" "." "--root" out
|
||||
"--features" "pcre2")))))
|
||||
#:cargo-build-flags '("--release" "--features" "pcre2")))
|
||||
(native-inputs
|
||||
`(("asciidoc" ,asciidoc)))
|
||||
`(("asciidoc" ,asciidoc)
|
||||
("pcre2" ,pcre2)
|
||||
("pkg-config" ,pkg-config)))
|
||||
(home-page "https://github.com/BurntSushi/ripgrep")
|
||||
(synopsis "Line-oriented search tool")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue