[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
422/436: gnu: Add eza.
From: |
guix-commits |
Subject: |
422/436: gnu: Add eza. |
Date: |
Sun, 5 Nov 2023 05:30:16 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 224481d687d6d6719f44b7b180f6e0823cc88c27
Author: Jaeme Sifat <jaeme@runbox.com>
AuthorDate: Sun Oct 29 00:27:13 2023 -0400
gnu: Add eza.
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
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/rust-apps.scm | 91 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 91 insertions(+)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 37d3c91d2e..2fca5ac1ec 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -25,6 +25,7 @@
;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
;;; Copyright © 2023 Arnav Andrew Jose <arnav.jose@gmail.com>
;;; Copyright © 2023 Wilko Meyer <w@wmeyer.eu>
+;;; Copyright © 2023 Jaeme Sifat <jaeme@runbox.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -471,6 +472,96 @@ program @code{ls}. It uses colours to distinguish file
types and metadata. It
also knows about symlinks, extended attributes, and Git.")
(license license:expat)))
+(define-public eza
+ (package
+ (name "eza")
+ (version "0.15.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "eza" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "14qapnxc1rwqsq6c13b35wgaiypn23niajk39c44i1w3if91rd85"))))
+ (build-system cargo-build-system)
+ (arguments
+ (list
+ #:install-source? #f
+ #:cargo-inputs `(("rust-ansiterm" ,rust-ansiterm-0.12)
+ ("rust-chrono" ,rust-chrono-0.4)
+ ("rust-git2" ,rust-git2-0.18)
+ ("rust-glob" ,rust-glob-0.3)
+ ("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
+ (append
+ (list pkg-config)
+ (if (supported-package? pandoc)
+ (list pandoc)
+ '())))
+ (inputs (list libgit2-1.7 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")
- 378/436: gnu: rust-toml-edit-0.18: Skip tests., (continued)
- 378/436: gnu: rust-toml-edit-0.18: Skip tests., guix-commits, 2023/11/05
- 391/436: gnu: rust-hkdf-0.12: Skip tests., guix-commits, 2023/11/05
- 388/436: gnu: rust-rend-0.3: Skip tests., guix-commits, 2023/11/05
- 395/436: gnu: Add rust-serde-indextree-0.2., guix-commits, 2023/11/05
- 399/436: gnu: Add rust-emacs-org-link-parser-0.1., guix-commits, 2023/11/05
- 404/436: gnu: rust-signal-hook-0.3: Don't skip build., guix-commits, 2023/11/05
- 405/436: gnu: rust-crossterm-winapi-0.9: Update to 0.9.1., guix-commits, 2023/11/05
- 407/436: gnu: Add rust-alsa-0.8., guix-commits, 2023/11/05
- 420/436: gnu: Add rust-libgit2-sys-0.16., guix-commits, 2023/11/05
- 417/436: gnu: rust-num-cpus-1: Update to 1.16.0., guix-commits, 2023/11/05
- 422/436: gnu: Add eza.,
guix-commits <=
- 423/436: gnu: Add kibi., guix-commits, 2023/11/05
- 424/436: gnu: Add rust-librespot-connect-0.4., guix-commits, 2023/11/05
- 427/436: gnu: rust-libdbus-sys-0.2: Update to 0.2.5., guix-commits, 2023/11/05
- 436/436: gnu: Add spotifyd., guix-commits, 2023/11/05
- 277/436: gnu: rust-serde-path-to-error-0.1: Update to 0.1.14., guix-commits, 2023/11/05
- 290/436: gnu: rust-tectonic-dep-support-0.1: Update to 0.1.1., guix-commits, 2023/11/05
- 292/436: gnu: rust-tectonic-engine-bibtex-0.1: Update to 0.1.5., guix-commits, 2023/11/05
- 299/436: gnu: rust-tectonic-io-base-0.3: Update to 0.3.1., guix-commits, 2023/11/05
- 170/436: gnu: Add rust-iai-0.1., guix-commits, 2023/11/05
- 174/436: gnu: Add rust-rstest-macros-0.13., guix-commits, 2023/11/05