gnu: password-store: Install fish and zsh completions.

* gnu/packages/password-utils.scm (password-store)[arguments]: Remove
phase install-shell-completions. Adjust make-flags.
This commit is contained in:
Brice Waegeneire 2020-02-09 10:11:25 +01:00 committed by Nicolas Goaziou
parent 24d9354c80
commit df931ac39c
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -25,6 +25,7 @@
;;; Copyright © 2019 Jens Mølgaard <jens@zete.tk>
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
;;;
;;; This file is part of GNU Guix.
;;;
@ -497,17 +498,11 @@ (define-public password-store
"sed" "tree" "which" "xclip"))))
(wrap-program (string-append out "/bin/pass")
`("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))
#:make-flags (list "CC=gcc" (string-append "PREFIX=" %output)
"WITH_ALLCOMP=yes"
(string-append "BASHCOMPDIR="
%output "/etc/bash_completion.d"))
;; Parallel tests may cause a race condition leading to a
;; timeout in some circumstances.
#:parallel-tests? #f