gnu: password-store: Install bash completions.

* gnu/packages/password-utils.scm (password-store)[arguments]: Add
'install-shell-completions' phase.
This commit is contained in:
Marius Bakke 2017-01-17 16:15:13 +01:00
parent c554c6bab8
commit 718c12786b
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -294,7 +294,17 @@ (define-public password-store
'("coreutils" "getopt" "git" "gnupg" "pwgen"
"sed" "tree" "which" "xclip"))))
(wrap-program (string-append out "/bin/pass")
`("PATH" ":" prefix (,(string-join path ":"))))))))
`("PATH" ":" prefix (,(string-join path ":"))))
#t)))
(add-after 'wrap-path 'install-shell-completions
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bashcomp (string-append out "/etc/bash_completion.d")))
;; TODO: install fish and zsh completions.
(mkdir-p bashcomp)
(copy-file "src/completion/pass.bash-completion"
(string-append bashcomp "/pass"))
#t))))
#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output))
;; Parallel tests may cause a race condition leading to a
;; timeout in some circumstances.