mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 06:20:18 +01:00
gnu: fd: Update to 9.0.0.
* gnu/packages/rust-apps.scm (fd): Update to 9.0.0. [arguments]: Use gexps. Remove phase adjusting the feature-flags for rust-clap-4. [cargo-inputs]: Add rust-aho-corasick-1, rust-etcetera-0.8. Replace rust-lscolors-0.13 with 0.16, rust-nix-0.26 with 0.27, rust-normpath-0.3 with 1, rust-nu-ansi-term-0.46 with 0.49, rust-regex-syntax-0.6 with 0.8. Remove rust-atty-0.2, rust-dirs-next-2, rust-num-cpus-1, rust-once-cell-1, rust-users-0.11. [cargo-development-inputs]: Replace rust-test-case-2 with 3. Change-Id: I8ce2d61e668cceafc49c9aa29c00703344f6b0b0 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
676b5dbe6e
commit
4dbb0bb1f2
1 changed files with 54 additions and 62 deletions
|
@ -525,7 +525,7 @@ This package is the community maintained fork of @code{exa}.")
|
||||||
(define-public fd
|
(define-public fd
|
||||||
(package
|
(package
|
||||||
(name "fd")
|
(name "fd")
|
||||||
(version "8.7.0")
|
(version "9.0.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -534,48 +534,45 @@ This package is the community maintained fork of @code{exa}.")
|
||||||
(string-append name "-" version ".tar.gz"))
|
(string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"186217yyb0znfn4jcc9l3i51fhfyb23lhbm3gg084sdrbj6bdnbg"))))
|
"1is6xrsnbiy4la3lrmxzl3pzzkygnx9mp8h5k8gfrc29bq8m7891"))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-test-flags
|
(list
|
||||||
'("--release"
|
#:cargo-test-flags
|
||||||
"--"
|
|
||||||
;; No user 'root' in the build environment.
|
;; No user 'root' in the build environment.
|
||||||
|
'(list "--release" "--"
|
||||||
"--skip=test_owner_root")
|
"--skip=test_owner_root")
|
||||||
#:install-source? #f
|
#:install-source? #f
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-anyhow" ,rust-anyhow-1)
|
`(("rust-aho-corasick" ,rust-aho-corasick-1)
|
||||||
|
("rust-anyhow" ,rust-anyhow-1)
|
||||||
("rust-argmax" ,rust-argmax-0.3)
|
("rust-argmax" ,rust-argmax-0.3)
|
||||||
("rust-atty" ,rust-atty-0.2)
|
|
||||||
("rust-chrono" ,rust-chrono-0.4)
|
("rust-chrono" ,rust-chrono-0.4)
|
||||||
("rust-clap" ,rust-clap-4)
|
("rust-clap" ,rust-clap-4)
|
||||||
("rust-clap-complete" ,rust-clap-complete-4)
|
("rust-clap-complete" ,rust-clap-complete-4)
|
||||||
("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
|
("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
|
||||||
("rust-ctrlc" ,rust-ctrlc-3)
|
("rust-ctrlc" ,rust-ctrlc-3)
|
||||||
("rust-dirs-next" ,rust-dirs-next-2)
|
("rust-etcetera" ,rust-etcetera-0.8)
|
||||||
("rust-faccess" ,rust-faccess-0.2)
|
("rust-faccess" ,rust-faccess-0.2)
|
||||||
("rust-globset" ,rust-globset-0.4)
|
("rust-globset" ,rust-globset-0.4)
|
||||||
("rust-humantime" ,rust-humantime-2)
|
("rust-humantime" ,rust-humantime-2)
|
||||||
("rust-ignore" ,rust-ignore-0.4)
|
("rust-ignore" ,rust-ignore-0.4)
|
||||||
("rust-jemallocator" ,rust-jemallocator-0.5)
|
("rust-jemallocator" ,rust-jemallocator-0.5)
|
||||||
("rust-libc" ,rust-libc-0.2)
|
("rust-libc" ,rust-libc-0.2)
|
||||||
("rust-lscolors" ,rust-lscolors-0.13)
|
("rust-lscolors" ,rust-lscolors-0.16)
|
||||||
("rust-nix" ,rust-nix-0.26)
|
("rust-nix" ,rust-nix-0.27)
|
||||||
("rust-normpath" ,rust-normpath-0.3)
|
("rust-normpath" ,rust-normpath-1)
|
||||||
("rust-nu-ansi-term" ,rust-nu-ansi-term-0.46)
|
("rust-nu-ansi-term" ,rust-nu-ansi-term-0.49)
|
||||||
("rust-num-cpus" ,rust-num-cpus-1)
|
|
||||||
("rust-once-cell" ,rust-once-cell-1)
|
|
||||||
("rust-regex" ,rust-regex-1)
|
("rust-regex" ,rust-regex-1)
|
||||||
("rust-regex-syntax" ,rust-regex-syntax-0.6)
|
("rust-regex-syntax" ,rust-regex-syntax-0.8)
|
||||||
("rust-users" ,rust-users-0.11)
|
|
||||||
("rust-version-check" ,rust-version-check-0.9))
|
("rust-version-check" ,rust-version-check-0.9))
|
||||||
#:cargo-development-inputs
|
#:cargo-development-inputs
|
||||||
(("rust-diff" ,rust-diff-0.1)
|
`(("rust-diff" ,rust-diff-0.1)
|
||||||
("rust-filetime" ,rust-filetime-0.2)
|
("rust-filetime" ,rust-filetime-0.2)
|
||||||
("rust-tempfile" ,rust-tempfile-3)
|
("rust-tempfile" ,rust-tempfile-3)
|
||||||
("rust-test-case" ,rust-test-case-2))
|
("rust-test-case" ,rust-test-case-3))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'override-jemalloc
|
(add-after 'unpack 'override-jemalloc
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((jemalloc (assoc-ref inputs "jemalloc")))
|
(let ((jemalloc (assoc-ref inputs "jemalloc")))
|
||||||
|
@ -584,18 +581,13 @@ This package is the community maintained fork of @code{exa}.")
|
||||||
(setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
|
(setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1")
|
||||||
(setenv "JEMALLOC_OVERRIDE"
|
(setenv "JEMALLOC_OVERRIDE"
|
||||||
(string-append jemalloc "/lib/libjemalloc.so")))))
|
(string-append jemalloc "/lib/libjemalloc.so")))))
|
||||||
(add-after 'unpack 'adjust-feature-flags
|
(add-after 'install 'install-extras
|
||||||
(lambda _
|
|
||||||
;; unstable-grouped was stablized in rust-clap 4.2.0
|
|
||||||
(substitute* "Cargo.toml"
|
|
||||||
((".*unstable-grouped.*") ""))))
|
|
||||||
(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")))
|
||||||
;; 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 require running the built binary.
|
;; Completions require running the built binary.
|
||||||
(unless ,(%current-target-system)
|
(unless #$(%current-target-system)
|
||||||
(invoke "make" "completions")
|
(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"))
|
||||||
|
@ -610,8 +602,8 @@ This package is the community maintained fork of @code{exa}.")
|
||||||
(synopsis "Simple, fast and user-friendly alternative to find")
|
(synopsis "Simple, fast and user-friendly alternative to find")
|
||||||
(description
|
(description
|
||||||
"@code{fd} is a simple, fast and user-friendly alternative to @code{find}.
|
"@code{fd} is a simple, fast and user-friendly alternative to @code{find}.
|
||||||
While it does not seek to mirror all of find's powerful functionality, it
|
While it does not seek to mirror all of find's powerful functionality, it provides
|
||||||
provides defaults for 80% of the use cases.")
|
defaults for 80% of the use cases.")
|
||||||
(license (list license:expat license:asl2.0))))
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public hexyl
|
(define-public hexyl
|
||||||
|
|
Loading…
Add table
Reference in a new issue