[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66805] [PATCH 21/22] gnu: Add eza.
From: |
Jaeme Sifat |
Subject: |
[bug#66805] [PATCH 21/22] gnu: Add eza. |
Date: |
Sun, 29 Oct 2023 00:27:13 -0400 |
eza is the community-maintained successor fork to exa. Minimal changes had to
be made to adapt the exa package definition to eza.
* gnu/packages/rust-apps.scm (eza): New variable.
Signed-off-by: Jaeme Sifat <jaeme@runbox.com>
Change-Id: I0069bbbc8de55a030a52ef98b0f8d9dd0fe07317
---
gnu/packages/rust-apps.scm | 89 ++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index a06447143a..78ca22748f 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -463,6 +463,95 @@ (define-public exa
also knows about symlinks, extended attributes, and Git.")
(license license:expat)))
+(define-public eza
+ (package
+ (name "eza")
+ (version "0.15.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "eza" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "078gdp5kamqrl7rj5q9a979xn58izqqzfi8vz0bhdxiikpjdf5b8"))))
+ (build-system cargo-build-system)
+ (arguments
+ (list
+ #:cargo-inputs `(("rust-ansiterm" ,rust-ansiterm-0.12)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-git2" ,rust-git2-0.18)
+ ("rust-glob" ,rust-glob-0.3)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-locale" ,rust-locale-0.2)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-natord" ,rust-natord-1)
+ ("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-number-prefix" ,rust-number-prefix-0.4)
+ ("rust-once-cell" ,rust-once-cell-1)
+ ("rust-percent-encoding" ,rust-percent-encoding-2)
+ ("rust-phf" ,rust-phf-0.11)
+ ("rust-proc-mounts" ,rust-proc-mounts-0.3)
+ ("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
+ ("rust-terminal-size" ,rust-terminal-size-0.3)
+ ("rust-timeago" ,rust-timeago-0.4)
+ ("rust-unicode-width" ,rust-unicode-width-0.1)
+ ("rust-uutils-term-grid" ,rust-uutils-term-grid-0.3)
+ ("rust-uzers" ,rust-uzers-0.11)
+ ("rust-windows-sys" ,rust-windows-sys-0.48)
+ ("rust-zoneinfo-compiled" ,rust-zoneinfo-compiled-0.5))
+ #:cargo-development-inputs `(("rust-criterion" ,rust-criterion-0.5)
+ ("rust-trycmd" ,rust-trycmd-0.14))
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'build 'build-manual
+ (lambda* (#:key inputs #:allow-other-keys)
+ (when (assoc-ref inputs "pandoc")
+ (map (lambda (page)
+ (with-output-to-file page
+ (lambda _
+ (invoke "pandoc"
+ "--standalone"
+ "-f"
+ "markdown"
+ "-t"
+ "man"
+ (string-append "man/" page
".md")))))
+ (list "eza.1" "eza_colors.5")))))
+ (add-after 'install 'install-extras
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share"))
+ (man1 (string-append share "/man/man1"))
+ (man5 (string-append share "/man/man5")))
+ (when (file-exists? "eza.1")
+ (install-file "eza.1" man1))
+ (when (file-exists? "eza_colors.5")
+ (install-file "eza_colors.5" man5))
+ (mkdir-p (string-append out "/etc/bash_completion.d"))
+ (mkdir-p (string-append share
+ "/fish/vendor_completions.d"))
+ (mkdir-p (string-append share "/zsh/site-functions"))
+ (copy-file "completions/bash/eza"
+ (string-append out
+ "/etc/bash_completion.d/eza"))
+ (copy-file "completions/fish/eza.fish"
+ (string-append share
+ "/fish/vendor_completions.d/eza.fish"))
+ (copy-file "completions/zsh/_eza"
+ (string-append share
+
"/zsh/site-functions/_eza"))))))))
+ (native-inputs (list pandoc pkg-config))
+ (inputs (list zlib))
+ (home-page "https://github.com/eza-community/eza")
+ (synopsis "Modern replacement for ls")
+ (description
+ "@code{eza} is a modern replacement for the command-line
+program @code{ls}. It uses colours to distinguish file types and
+metadata. It also knows about symlinks, extended attributes, and Git.
+This package is the community maintained fork of @code{exa}.")
+ (license license:expat)))
+
(define-public fd
(package
(name "fd")
--
2.34.1
- [bug#66805] [PATCH 03/22] gnu: Add rust-isolang-2., (continued)
- [bug#66805] [PATCH 03/22] gnu: Add rust-isolang-2., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 06/22] gnu: Add rust-partition-identity-0.3., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 04/22] gnu: Add rust-timeago-0.4., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 05/22] gnu: Add rust-terminal-size-0.3., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 08/22] gnu: rust-phf-shared-0.11: Update to 0.11.2., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 09/22] gnu: rust-phf-macros-0.11: Update to 0.11.2., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 10/22] gnu: rust-phf-0.11: Update to 0.11.2., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 11/22] gnu: rust-num-cpus-1: Update to 1.16.0., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 13/22] gnu: Add rust-libgit2-sys-0.16., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 12/22] gnu: Add rust-libssh2-sys-0.3., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 21/22] gnu: Add eza.,
Jaeme Sifat <=
- [bug#66805] [PATCH 17/22] gnu: Add rust-pure-rust-locales-0.7., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 20/22] gnu: Add rust-ansiterm-0.12., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 14/22] gnu: Add rust-git2-0.18., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 15/22] gnu: Add rust-windows-metadata-0.51., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 19/22] gnu: rust-chrono-0.4: Update to 0.4.31., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 18/22] gnu: Add rust-android-tzdata-0.1., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 16/22] gnu: Add rust-windows-bindgen-0.51., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH 22/22] gnu: Update copyright header., Jaeme Sifat, 2023/10/29
- [bug#66805] [PATCH vREVISION] gnu: eza: Fix arguments field., Jaeme Sifat, 2023/10/29