mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: btrfs-progs: Fix bash completions.
This is a follow-up to commit 9a1c4a981b
. Bash
completions must have the same name as the executable.
* gnu/packages/linux.scm (btrfs-progs)[arguments]: Rename "btrfs-completion"
script to "btrfs".
This commit is contained in:
parent
3971dcbf0e
commit
3ce4e265dd
1 changed files with 6 additions and 4 deletions
|
@ -3245,10 +3245,12 @@ (define-public btrfs-progs
|
|||
(lambda _ (zero? (system* "make" "static"))))
|
||||
(add-after 'install 'install-bash-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(install-file "btrfs-completion"
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/etc/bash_completion.d"))
|
||||
#t))
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bashcomp (string-append out "/etc/bash_completion.d")))
|
||||
(mkdir-p bashcomp)
|
||||
(copy-file "btrfs-completion"
|
||||
(string-append bashcomp "/btrfs"))
|
||||
#t)))
|
||||
(add-after 'install 'install-static
|
||||
(let ((staticbin (string-append (assoc-ref %outputs "static")
|
||||
"/bin")))
|
||||
|
|
Loading…
Reference in a new issue