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>
This commit is contained in:
parent
ba4746735e
commit
1e822bb80c
1 changed files with 18 additions and 16 deletions
|
@ -528,31 +528,33 @@ also knows about symlinks, extended attributes, and Git.")
|
||||||
(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"))
|
||||||
|
(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"))
|
(man1 (string-append share "/man/man1"))
|
||||||
(man5 (string-append share "/man/man5")))
|
(man5 (string-append share "/man/man5")))
|
||||||
(when (file-exists? "eza.1")
|
(when (file-exists? "eza.1")
|
||||||
(install-file "eza.1" man1))
|
(install-file "eza.1" man1))
|
||||||
(when (file-exists? "eza_colors.5")
|
(when (file-exists? "eza_colors.5")
|
||||||
(install-file "eza_colors.5" man5))
|
(install-file "eza_colors.5" man5))
|
||||||
(mkdir-p (string-append out "/etc/bash_completion.d"))
|
(mkdir-p bash-completions-dir)
|
||||||
(mkdir-p (string-append
|
(mkdir-p zsh-completions-dir)
|
||||||
share "/fish/vendor_completions.d"))
|
(mkdir-p fish-completions-dir)
|
||||||
(mkdir-p (string-append share "/zsh/site-functions"))
|
|
||||||
(copy-file "completions/bash/eza"
|
(copy-file "completions/bash/eza"
|
||||||
(string-append
|
(string-append bash-completions-dir "/eza"))
|
||||||
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"
|
(copy-file "completions/zsh/_eza"
|
||||||
(string-append
|
(string-append zsh-completions-dir "/_eza"))
|
||||||
share "/zsh/site-functions/_eza"))))))))
|
(copy-file "completions/fish/eza.fish"
|
||||||
|
(string-append fish-completions-dir
|
||||||
|
"/eza.fish"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(append
|
(append (list pkg-config)
|
||||||
(list pkg-config)
|
(if (supported-package? pandoc)
|
||||||
(if (supported-package? pandoc)
|
(list pandoc)
|
||||||
(list pandoc)
|
'())))
|
||||||
'())))
|
|
||||||
(inputs (list libgit2-1.7 zlib))
|
(inputs (list libgit2-1.7 zlib))
|
||||||
(home-page "https://github.com/eza-community/eza")
|
(home-page "https://github.com/eza-community/eza")
|
||||||
(synopsis "Modern replacement for ls")
|
(synopsis "Modern replacement for ls")
|
||||||
|
|
Reference in a new issue