diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-11-19 13:00:33 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-11-28 07:59:41 +0200 |
commit | f66f05e171a59177f3d242809b4eb52ee96dbcaa (patch) | |
tree | cc7197ae27127181596a6535d49c5b640b9663a5 /gnu/packages | |
parent | 008d234666aa468323f8179999ab7a1219a68ccb (diff) | |
download | guix-f66f05e171a59177f3d242809b4eb52ee96dbcaa.tar.gz guix-f66f05e171a59177f3d242809b4eb52ee96dbcaa.zip |
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
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/rust-apps.scm | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 1965111cbb..0fcb2f0fdb 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -633,18 +633,19 @@ This package is the community maintained fork of @code{exa}.") (add-after 'install 'install-extra (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) - (invoke "make" "completions") ;; Manpages (install-file "doc/fd.1" (string-append out "/share/man/man1")) - ;; Completions - (install-file "autocomplete/fd.bash" - (string-append out "/etc/bash_completion.d")) - (install-file "autocomplete/fd.fish" - (string-append out "/share/fish/vendor_completions.d")) - (install-file "autocomplete/_fd" - (string-append out "/share/zsh/site-functions")) - (rename-file (string-append out "/etc/bash_completion.d/fd.bash") - (string-append out "/etc/bash_completion.d/fd")))))))) + ;; Completions require running the built binary. + (unless ,(%current-target-system) + (invoke "make" "completions") + (install-file "autocomplete/fd.bash" + (string-append out "/etc/bash_completion.d")) + (install-file "autocomplete/fd.fish" + (string-append out "/share/fish/vendor_completions.d")) + (install-file "autocomplete/_fd" + (string-append out "/share/zsh/site-functions")) + (rename-file (string-append out "/etc/bash_completion.d/fd.bash") + (string-append out "/etc/bash_completion.d/fd"))))))))) (inputs (list jemalloc)) (home-page "https://github.com/sharkdp/fd") (synopsis "Simple, fast and user-friendly alternative to find") |