gnu: borg: Install shell completions.
* gnu/packages/backup.scm (borg)[arguments]: Add new 'install-shell-completions' phase. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
50abaf6387
commit
9d6863de24
1 changed files with 14 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||||
;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
|
;;; Copyright © 2020 Marcin Karpezo <sirmacik@wioo.waw.pl>
|
||||||
|
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -672,6 +673,19 @@ detection, and lossless compression.")
|
||||||
"docs/misc/internals-picture.txt"
|
"docs/misc/internals-picture.txt"
|
||||||
"docs/misc/prune-example.txt"))
|
"docs/misc/prune-example.txt"))
|
||||||
(copy-recursively "docs/man" man)
|
(copy-recursively "docs/man" man)
|
||||||
|
#t)))
|
||||||
|
(add-after 'install-docs 'install-shell-completions
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(etc (string-append out "/etc"))
|
||||||
|
(share (string-append out "/share")))
|
||||||
|
(with-directory-excursion "scripts/shell_completions"
|
||||||
|
(install-file "bash/borg"
|
||||||
|
(string-append etc "/bash_completion.d"))
|
||||||
|
(install-file "zsh/_borg"
|
||||||
|
(string-append share "/zsh/site-functions"))
|
||||||
|
(install-file "fish/borg.fish"
|
||||||
|
(string-append share "/fish/vendor_completions.d")))
|
||||||
#t))))))
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-cython" ,python-cython)
|
`(("python-cython" ,python-cython)
|
||||||
|
|
Reference in a new issue