[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: megatools: Install bash completion.
From: |
guix-commits |
Subject: |
02/02: gnu: megatools: Install bash completion. |
Date: |
Thu, 13 Aug 2020 12:22:19 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 773ba8aec1379c13b8e2fc67f57b751828c8a966
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Aug 13 19:21:53 2020 +0300
gnu: megatools: Install bash completion.
* gnu/packages/sync.scm (megatools)[arguments]: Add custom phase to
install bash completion file.
---
gnu/packages/sync.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm
index 1207acd..b92848e 100644
--- a/gnu/packages/sync.scm
+++ b/gnu/packages/sync.scm
@@ -118,6 +118,15 @@ distributions.")
(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