[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
273/373: gnu: fd: Update to 8.7.0.
From: |
guix-commits |
Subject: |
273/373: gnu: fd: Update to 8.7.0. |
Date: |
Sun, 16 Apr 2023 07:11:22 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit e704f9be71edb0930555bc7d1ae5ea8d176827b8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Mar 9 16:43:16 2023 +0200
gnu: fd: Update to 8.7.0.
* gnu/packages/rust-apps.scm (fd): Update to 8.7.0.
[arguments]: Add cargo-test-flags to skip a test. Don't install source.
Adjust custom 'override-jemalloc phase to continue using system
jemalloc. Rewrite custom 'install-extra phase for changes in source
code.
[cargo-inputs]: Add rust-anyhow-1, rust-argmax-0.3, rust-chrono-0.4,
rust-clap-complete-4, rust-crossbeam-channel-0.5, rust-dirs-next-2,
rust-faccess-0.2, rust-nix-0.26, rust-normpath-0.3,
rust-nu-ansi-term-0.46, rust-once-cell-1. Remove rust-dirs-2,
rust-lazy-static-1. Replace rust-clap-2 with 4, rust-jemallocator-0.3
with 0.5, rust-lscolors-0.7 with 0.13, rust-users-0.10 with 0.11.
[cargo-development-inputs]: Add rust-tempfile-3, rust-test-case-2.
Remove rust-tempdir-0.3.
---
gnu/packages/rust-apps.scm | 65 +++++++++++++++++++++++++++-------------------
1 file changed, 39 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 61ccf2f360..a20fcad965 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -458,7 +458,7 @@ also knows about symlinks, extended attributes, and Git.")
(define-public fd
(package
(name "fd")
- (version "8.1.1")
+ (version "8.7.0")
(source
(origin
(method url-fetch)
@@ -467,58 +467,71 @@ also knows about symlinks, extended attributes, and Git.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "124a5r8hpk2phs1288jybh34d48yxy44wr7gv5ggchs272gs2jam"))))
+ "186217yyb0znfn4jcc9l3i51fhfyb23lhbm3gg084sdrbj6bdnbg"))))
(build-system cargo-build-system)
(arguments
- `(#:cargo-inputs
- (("rust-ansi-term" ,rust-ansi-term-0.12)
- ("rust-anyhow" ,rust-anyhow-1)
+ `(#:cargo-test-flags
+ '("--release"
+ "--"
+ ;; No user 'root' in the build environment.
+ "--skip=test_owner_root")
+ #:install-source? #f
+ #:cargo-inputs
+ (("rust-anyhow" ,rust-anyhow-1)
+ ("rust-argmax" ,rust-argmax-0.3)
("rust-atty" ,rust-atty-0.2)
- ("rust-clap" ,rust-clap-2)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-clap" ,rust-clap-4)
+ ("rust-clap-complete" ,rust-clap-complete-4)
+ ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
("rust-ctrlc" ,rust-ctrlc-3)
- ("rust-dirs" ,rust-dirs-2)
+ ("rust-dirs-next" ,rust-dirs-next-2)
+ ("rust-faccess" ,rust-faccess-0.2)
("rust-globset" ,rust-globset-0.4)
("rust-humantime" ,rust-humantime-2)
("rust-ignore" ,rust-ignore-0.4)
- ("rust-jemallocator" ,rust-jemallocator-0.3)
- ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-jemallocator" ,rust-jemallocator-0.5)
("rust-libc" ,rust-libc-0.2)
- ("rust-lscolors" ,rust-lscolors-0.7)
+ ("rust-lscolors" ,rust-lscolors-0.13)
+ ("rust-nix" ,rust-nix-0.26)
+ ("rust-normpath" ,rust-normpath-0.3)
+ ("rust-nu-ansi-term" ,rust-nu-ansi-term-0.46)
("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-once-cell" ,rust-once-cell-1)
("rust-regex" ,rust-regex-1)
("rust-regex-syntax" ,rust-regex-syntax-0.6)
- ("rust-users" ,rust-users-0.10)
+ ("rust-users" ,rust-users-0.11)
("rust-version-check" ,rust-version-check-0.9))
#:cargo-development-inputs
(("rust-diff" ,rust-diff-0.1)
("rust-filetime" ,rust-filetime-0.2)
- ("rust-tempdir" ,rust-tempdir-0.3))
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-test-case" ,rust-test-case-2))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'override-jemalloc
(lambda* (#:key inputs #:allow-other-keys)
(let ((jemalloc (assoc-ref inputs "jemalloc")))
+ ;; This flag is needed when not using the bundled jemalloc.
+ ;; https://github.com/tikv/jemallocator/issues/19
+ (setenv
"CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
(setenv "JEMALLOC_OVERRIDE"
- (string-append jemalloc "/lib/libjemalloc.so")))
- #t))
+ (string-append jemalloc "/lib/libjemalloc.so")))))
(add-after 'install 'install-extra
(lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (install-completion
- (lambda (completion out-dir)
- (for-each
- (lambda (f)
- (install-file f (string-append out out-dir)))
- (find-files "target/release/build/" completion)))))
+ (let ((out (assoc-ref outputs "out")))
+ (invoke "make" "completions")
;; Manpages
(install-file "doc/fd.1" (string-append out "/share/man/man1"))
;; Completions
- (install-completion "^fd.bash$" "/etc/bash_completion.d")
- (install-completion "^fd.fish$"
"/share/fish/vendor_completions.d")
- (install-completion "^_fd$" "/share/zsh/site-functions")
+ (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"))
- #t))))))
+ (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")
- 231/373: gnu: Add rust-maybe-rayon-0.1., (continued)
- 231/373: gnu: Add rust-maybe-rayon-0.1., guix-commits, 2023/04/16
- 235/373: gnu: Add rust-const-fn-assert-0.1., guix-commits, 2023/04/16
- 241/373: gnu: Remove rust-askama-derive-0.10., guix-commits, 2023/04/16
- 245/373: gnu: Add rust-libwebp-sys-0.4., guix-commits, 2023/04/16
- 249/373: gnu: gtk+-2: Remove trailing #t from phases., guix-commits, 2023/04/16
- 251/373: gnu: gdk-pixbuf: Honor #:tests flag on all architectures., guix-commits, 2023/04/16
- 255/373: gnu: gtk+-2: Skip two more tests., guix-commits, 2023/04/16
- 261/373: gnu: Add rust-crossterm-winapi-0.9., guix-commits, 2023/04/16
- 268/373: gnu: rust-nix-0.26: Update to 0.26.2., guix-commits, 2023/04/16
- 276/373: gnu: Add rust-nu-ansi-term-0.46., guix-commits, 2023/04/16
- 273/373: gnu: fd: Update to 8.7.0.,
guix-commits <=
- 274/373: gnu: Add rust-test-case-macros-2., guix-commits, 2023/04/16
- 294/373: gnu: rust-fixedbitset-0.4: Update to 0.4.2., guix-commits, 2023/04/16
- 296/373: gnu: rust-ring-0.14: Remove pregenerated files., guix-commits, 2023/04/16
- 295/373: gnu: rust-ring-0.16: Remove pregenerated files., guix-commits, 2023/04/16
- 282/373: gnu: rust-tokio-1: Update to 1.26.0., guix-commits, 2023/04/16
- 289/373: gnu: rust-arbitrary-1: Update to 1.2.3., guix-commits, 2023/04/16
- 288/373: gnu: rust-anyhow-1: Update to 1.0.69., guix-commits, 2023/04/16
- 305/373: gnu: rust-libmimalloc-sys-0.1: Remove bundled libraries, executables., guix-commits, 2023/04/16
- 316/373: gnu: rbw: Add missing input., guix-commits, 2023/04/16
- 328/373: gnu: Add rust-radium-0.7., guix-commits, 2023/04/16