gnu: exa: Update to 0.10.1.

* gnu/packages/rust-apps.scm (exa): Update to 0.10.1.
[arguments]: Delete custom phase 'disable-failing-tests. Add custom
'build-manual phase. Remove trailing #t from phases.
[cargo-inputs]: Replace rust-datetime-0.4 with 0.5, rust-git2-0.9 with
0.13, rust-number-prefix-0.3 with 0.4, rust-users-0.9 with 0.11,
rust-zoneinfo-compiled-0.4 with 0.5.
[cargo-native-inputs]: Replace rust-datetime-0.4 with 0.5.
[native-inputs]: Add pandoc.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
gyara 2022-08-27 19:10:45 +09:00 committed by Efraim Flashner
parent 7d60052de8
commit 31889c7964
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -53,6 +53,7 @@ (define-module (gnu packages rust-apps)
#:use-module (gnu packages documentation) #:use-module (gnu packages documentation)
#:use-module (gnu packages fontutils) #:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop) #:use-module (gnu packages freedesktop)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
#:use-module (gnu packages gtk) #:use-module (gnu packages gtk)
#:use-module (gnu packages ibus) #:use-module (gnu packages ibus)
@ -365,7 +366,7 @@ (define-public dutree
(define-public exa (define-public exa
(package (package
(name "exa") (name "exa")
(version "0.9.0") (version "0.10.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -374,14 +375,14 @@ (define-public exa
(string-append name "-" version ".tar.gz")) (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1s902xgplz1167k0r7x235p914lprpsqy2if0kpa1mlb0fswqqq4")))) "1dd7waq2bnxc1xwygqphi8k1g2qzykr6fk0q4rgrhhxp2jd09f04"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:cargo-inputs `(#:cargo-inputs
(("rust-ansi-term" ,rust-ansi-term-0.12) (("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-datetime" ,rust-datetime-0.4) ("rust-datetime" ,rust-datetime-0.5)
("rust-env-logger" ,rust-env-logger-0.6) ("rust-env-logger" ,rust-env-logger-0.6)
("rust-git2" ,rust-git2-0.9) ("rust-git2" ,rust-git2-0.13)
("rust-glob" ,rust-glob-0.3) ("rust-glob" ,rust-glob-0.3)
("rust-lazy-static" ,rust-lazy-static-1) ("rust-lazy-static" ,rust-lazy-static-1)
("rust-libc" ,rust-libc-0.2) ("rust-libc" ,rust-libc-0.2)
@ -389,64 +390,45 @@ (define-public exa
("rust-log" ,rust-log-0.4) ("rust-log" ,rust-log-0.4)
("rust-natord" ,rust-natord-1) ("rust-natord" ,rust-natord-1)
("rust-num-cpus" ,rust-num-cpus-1) ("rust-num-cpus" ,rust-num-cpus-1)
("rust-number-prefix" ,rust-number-prefix-0.3) ("rust-number-prefix" ,rust-number-prefix-0.4)
("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1) ("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
("rust-term-grid" ,rust-term-grid-0.1) ("rust-term-grid" ,rust-term-grid-0.1)
("rust-term-size" ,rust-term-size-0.3) ("rust-term-size" ,rust-term-size-0.3)
("rust-unicode-width" ,rust-unicode-width-0.1) ("rust-unicode-width" ,rust-unicode-width-0.1)
("rust-users" ,rust-users-0.9) ("rust-users" ,rust-users-0.11)
("rust-zoneinfo-compiled" ,rust-zoneinfo-compiled-0.4)) ("rust-zoneinfo-compiled" ,rust-zoneinfo-compiled-0.5))
#:cargo-development-inputs #:cargo-development-inputs
(("rust-datetime" ,rust-datetime-0.4)) (("rust-datetime" ,rust-datetime-0.5))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
;; Ignoring failing tests. (add-after 'build 'build-manual
;; Reported in https://github.com/ogham/exa/issues/318
(add-before 'check 'disable-failing-tests
(lambda _ (lambda _
(substitute* "src/options/mod.rs" (map (lambda (page)
(("^.*fn oneline_across.*" oneline-across) (system (string-append
(string-append "#[ignore]\n" oneline-across))) "pandoc --standalone -f markdown -t man man/"
page ".md > " page)))
(substitute* "src/options/view.rs" `("exa.1" "exa_colors.5"))))
(("test!\\(across:.*") "")
(("test!\\(cr:.*") "")
(("test!\\(empty:.*") "")
(("test!\\(gracross:.*") "")
(("test!\\(grid:.*") "")
(("test!\\(icons:.*") "")
(("test!\\(just_binary:.*") "")
(("test!\\(just_blocks:.*") "")
(("test!\\(just_bytes:.*") "")
(("test!\\(just_git:.*") "")
(("test!\\(just_group:.*") "")
(("test!\\(just_header:.*") "")
(("test!\\(just_inode:.*") "")
(("test!\\(just_links:.*") "")
(("test!\\(leg:.*") "")
(("test!\\(lid:.*") "")
(("test!\\(original_g:.*") ""))
#t))
(add-after 'install 'install-extras (add-after 'install 'install-extras
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(share (string-append out "/share")) (share (string-append out "/share"))
(man1 (string-append share "/man/man1"))) (man1 (string-append share "/man/man1"))
(install-file "contrib/man/exa.1" man1) (man5 (string-append share "/man/man5")))
(install-file "exa.1" man1)
(install-file "exa_colors.5" man5)
(mkdir-p (string-append out "/etc/bash_completion.d")) (mkdir-p (string-append out "/etc/bash_completion.d"))
(mkdir-p (string-append share "/fish/vendor_completions.d")) (mkdir-p (string-append share "/fish/vendor_completions.d"))
(mkdir-p (string-append share "/zsh/site-functions")) (mkdir-p (string-append share "/zsh/site-functions"))
(copy-file "contrib/completions.bash" (copy-file "completions/completions.bash"
(string-append out "/etc/bash_completion.d/exa")) (string-append out "/etc/bash_completion.d/exa"))
(copy-file "contrib/completions.fish" (copy-file "completions/completions.fish"
(string-append share "/fish/vendor_completions.d/exa.fish")) (string-append
(copy-file "contrib/completions.zsh" share "/fish/vendor_completions.d/exa.fish"))
(string-append share "/zsh/site-functions/_exa")) (copy-file "completions/completions.zsh"
#t)))))) (string-append
(inputs share "/zsh/site-functions/_exa"))))))))
(list libgit2 zlib)) (inputs (list libgit2 zlib))
(native-inputs (native-inputs (list pkg-config pandoc))
(list pkg-config))
(home-page "https://the.exa.website/") (home-page "https://the.exa.website/")
(synopsis "Modern replacement for ls") (synopsis "Modern replacement for ls")
(description "@code{exa} is a modern replacement for the command-line (description "@code{exa} is a modern replacement for the command-line