gnu: megatools: Install bash completion.

* gnu/packages/sync.scm (megatools)[arguments]: Add custom phase to
install bash completion file.
This commit is contained in:
Efraim Flashner 2020-08-13 19:21:53 +03:00
parent 9f17068241
commit 773ba8aec1
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -118,6 +118,15 @@ (define-public megatools
(base32
"1nwbalc54iz6616liyxfalf5yafwx0iv6cmqgvg4kz9khqscmhcd"))))
(build-system gnu-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'install 'install-completions
(lambda* (#:key outputs #:allow-other-keys)
(install-file "contrib/bash-completion/megatools"
(string-append (assoc-ref outputs "out")
"/etc/bash_completion.d"))
#t)))))
(native-inputs
`(("pkg-config" ,pkg-config)
;; For documentation