mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-13 18:36:14 -05:00
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 @@ (define-public eza
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue