gnu: fd: Prepare for cross-compilation.
* gnu/packages/rust-apps.scm (fd)[arguments]: Adjust custom 'install-extra phase to only generate the completions when not cross-compiling. Change-Id: I6d961d798af217cc5abd42018f13d0160f0c5012
parent
008d234666
commit
f66f05e171
|
@ -633,10 +633,11 @@ This package is the community maintained fork of @code{exa}.")
|
||||||
(add-after 'install 'install-extra
|
(add-after 'install 'install-extra
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(invoke "make" "completions")
|
|
||||||
;; Manpages
|
;; Manpages
|
||||||
(install-file "doc/fd.1" (string-append out "/share/man/man1"))
|
(install-file "doc/fd.1" (string-append out "/share/man/man1"))
|
||||||
;; Completions
|
;; Completions require running the built binary.
|
||||||
|
(unless ,(%current-target-system)
|
||||||
|
(invoke "make" "completions")
|
||||||
(install-file "autocomplete/fd.bash"
|
(install-file "autocomplete/fd.bash"
|
||||||
(string-append out "/etc/bash_completion.d"))
|
(string-append out "/etc/bash_completion.d"))
|
||||||
(install-file "autocomplete/fd.fish"
|
(install-file "autocomplete/fd.fish"
|
||||||
|
@ -644,7 +645,7 @@ This package is the community maintained fork of @code{exa}.")
|
||||||
(install-file "autocomplete/_fd"
|
(install-file "autocomplete/_fd"
|
||||||
(string-append out "/share/zsh/site-functions"))
|
(string-append out "/share/zsh/site-functions"))
|
||||||
(rename-file (string-append out "/etc/bash_completion.d/fd.bash")
|
(rename-file (string-append out "/etc/bash_completion.d/fd.bash")
|
||||||
(string-append out "/etc/bash_completion.d/fd"))))))))
|
(string-append out "/etc/bash_completion.d/fd")))))))))
|
||||||
(inputs (list jemalloc))
|
(inputs (list jemalloc))
|
||||||
(home-page "https://github.com/sharkdp/fd")
|
(home-page "https://github.com/sharkdp/fd")
|
||||||
(synopsis "Simple, fast and user-friendly alternative to find")
|
(synopsis "Simple, fast and user-friendly alternative to find")
|
||||||
|
|
Reference in New Issue