From: Jaeme Sifat via Guix-patches via <guix-patches@gnu.org>
To: 66805@debbugs.gnu.org
Cc: Jaeme Sifat <jaeme@runbox.com>
Subject: [bug#66805] [PATCH 21/22] gnu: Add eza.
Date: Sun, 29 Oct 2023 00:27:13 -0400 [thread overview]
Message-ID: <b2a1b7994a756ec1362ec7fc50d93cbcffd69b47.1698553238.git.jaeme@runbox.com> (raw)
In-Reply-To: <cover.1698553236.git.jaeme@runbox.com>
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
next prev parent reply other threads:[~2023-10-29 4:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-29 4:24 [bug#66805] [PATCH 00/22] gnu: rust-apps: Add eza Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 01/22] gnu: Add rust-uzers-0.11 Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 02/22] gnu: Add rust-uutils-term-grid-0.3 Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 03/22] gnu: Add rust-isolang-2 Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 04/22] gnu: Add rust-timeago-0.4 Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 05/22] gnu: Add rust-terminal-size-0.3 Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 06/22] gnu: Add rust-partition-identity-0.3 Jaeme Sifat via Guix-patches via
2023-10-29 4:26 ` [bug#66805] [PATCH 07/22] gnu: Add rust-proc-mounts-0.3 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 08/22] gnu: rust-phf-shared-0.11: Update to 0.11.2 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 09/22] gnu: rust-phf-macros-0.11: " Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 10/22] gnu: rust-phf-0.11: " Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 11/22] gnu: rust-num-cpus-1: Update to 1.16.0 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 12/22] gnu: Add rust-libssh2-sys-0.3 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 13/22] gnu: Add rust-libgit2-sys-0.16 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 14/22] gnu: Add rust-git2-0.18 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 15/22] gnu: Add rust-windows-metadata-0.51 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 16/22] gnu: Add rust-windows-bindgen-0.51 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 17/22] gnu: Add rust-pure-rust-locales-0.7 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 18/22] gnu: Add rust-android-tzdata-0.1 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 19/22] gnu: rust-chrono-0.4: Update to 0.4.31 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` [bug#66805] [PATCH 20/22] gnu: Add rust-ansiterm-0.12 Jaeme Sifat via Guix-patches via
2023-10-29 4:27 ` Jaeme Sifat via Guix-patches via [this message]
2023-11-05 10:31 ` bug#66805: [PATCH 21/22] gnu: Add eza Efraim Flashner
2023-10-29 4:27 ` [bug#66805] [PATCH 22/22] gnu: Update copyright header Jaeme Sifat via Guix-patches via
2023-10-30 3:52 ` [bug#66805] [PATCH vREVISION] gnu: eza: Fix arguments field Jaeme Sifat via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b2a1b7994a756ec1362ec7fc50d93cbcffd69b47.1698553238.git.jaeme@runbox.com \
--to=guix-patches@gnu.org \
--cc=66805@debbugs.gnu.org \
--cc=jaeme@runbox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.