[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
118/127: gnu: eza: Refactor package definition.
From: |
guix-commits |
Subject: |
118/127: gnu: eza: Refactor package definition. |
Date: |
Tue, 26 Dec 2023 06:42:59 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 7f66b1b13ab9c626d9f1309c8c814140412b2d48
Author: Jaeme Sifat <jaeme@runbox.com>
AuthorDate: Tue Dec 19 22:55:17 2023 -0500
gnu: eza: Refactor package definition.
* gnu/packages/rust-apps.scm (eza): Refactor package definition.
[arguments]: Made 'install-extras phase clearer.
Change-Id: I4df0fdcde11d8ab07eed5aeeb1d14a6fe5fe55c3
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/rust-apps.scm | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index f7fe64407e..c1382ebfb2 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -528,31 +528,33 @@ also knows about symlinks, extended attributes, and Git.")
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(share (string-append out "/share"))
+ (bash-completions-dir (string-append share
+
"/bash-completion/completions"))
+ (zsh-completions-dir (string-append share
+ "/zsh/site-functions"))
+ (fish-completions-dir (string-append share
+
"/fish/vendor_completions.d"))
(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"))
+ (mkdir-p bash-completions-dir)
+ (mkdir-p zsh-completions-dir)
+ (mkdir-p fish-completions-dir)
(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"))
+ (string-append bash-completions-dir
"/eza"))
(copy-file "completions/zsh/_eza"
- (string-append
- share "/zsh/site-functions/_eza"))))))))
+ (string-append zsh-completions-dir
"/_eza"))
+ (copy-file "completions/fish/eza.fish"
+ (string-append fish-completions-dir
+ "/eza.fish"))))))))
(native-inputs
- (append
- (list pkg-config)
- (if (supported-package? pandoc)
- (list pandoc)
- '())))
+ (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")
- 70/127: gnu: Add rust-gsk4-0.7., (continued)
- 70/127: gnu: Add rust-gsk4-0.7., guix-commits, 2023/12/26
- 69/127: gnu: Add rust-gsk4-sys-0.7., guix-commits, 2023/12/26
- 94/127: gnu: Add rust-rstest-macros-0.16., guix-commits, 2023/12/26
- 71/127: gnu: Add rust-gtk4-sys-0.7., guix-commits, 2023/12/26
- 100/127: gnu: rust-time-core-0.1: Update to 0.1.2., guix-commits, 2023/12/26
- 101/127: gnu: rust-time-macros-0.2: Update to 0.2.16., guix-commits, 2023/12/26
- 103/127: gnu: Add rust-quick-xml-0.31., guix-commits, 2023/12/26
- 111/127: gnu: Add rust-palette-0.7., guix-commits, 2023/12/26
- 113/127: gnu: Add rust-topology-traits-0.1., guix-commits, 2023/12/26
- 112/127: gnu: Add rust-rand-mt-4., guix-commits, 2023/12/26
- 118/127: gnu: eza: Refactor package definition.,
guix-commits <=
- 117/127: gnu: eza: Update to 0.17.0., guix-commits, 2023/12/26
- 120/127: gnu: rust-regex-syntax-0.7: Update to 0.7.5., guix-commits, 2023/12/26
- 121/127: gnu: rust-regex-automata-0.3: Update to 0.3.9., guix-commits, 2023/12/26
- 126/127: gnu: just: Update to 1.17.0., guix-commits, 2023/12/26
- 52/127: gnu: Add rust-glib-macros-0.18., guix-commits, 2023/12/26
- 53/127: gnu: Add rust-glib-0.18., guix-commits, 2023/12/26
- 60/127: gnu: Add rust-pango-sys-0.18., guix-commits, 2023/12/26
- 62/127: gnu: rust-const-random-macro-0.1: Update to 0.1.16., guix-commits, 2023/12/26
- 83/127: gnu: Add rust-windows-aarch64-msvc-0.52., guix-commits, 2023/12/26
- 77/127: gnu: Add rust-rstest-0.17., guix-commits, 2023/12/26