gnu: bash-completion: Modify to modify-phases.
* gnu/packages/bash.scm (bash-completion): Use modify-phases instead of alist-cons-after.
This commit is contained in:
parent
cccb4d2652
commit
aa67d3c546
1 changed files with 23 additions and 23 deletions
|
@ -289,7 +289,8 @@ without modification.")
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs `(("util-linux" ,util-linux)))
|
(native-inputs `(("util-linux" ,util-linux)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (alist-cons-after
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(add-after
|
||||||
'install 'remove-redundant-completions
|
'install 'remove-redundant-completions
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; Util-linux comes with a bunch of completion files for
|
;; Util-linux comes with a bunch of completion files for
|
||||||
|
@ -310,8 +311,7 @@ without modification.")
|
||||||
(when (file-exists? file)
|
(when (file-exists? file)
|
||||||
(delete-file file)))
|
(delete-file file)))
|
||||||
(map basename already)))
|
(map basename already)))
|
||||||
#t))
|
#t))))))
|
||||||
%standard-phases)))
|
|
||||||
(synopsis "Bash completions for common commands")
|
(synopsis "Bash completions for common commands")
|
||||||
(description
|
(description
|
||||||
"This package provides extensions that allow Bash to provide adapted
|
"This package provides extensions that allow Bash to provide adapted
|
||||||
|
|
Reference in a new issue