me
/
guix
Archived
1
0
Fork 0

gnu: bash-completion: Remove util-linux overrides.

These completions are deprecated or removed upstream, and
bash-completion defers to upstream completions.

* gnu/packages/bash.scm (bash-completion)[native-inputs]: Remove field.
[arguments]: Remove field.
master
Efraim Flashner 2022-08-07 22:49:26 +03:00
parent 675c5c9bbd
commit decdb5a59d
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 1 additions and 28 deletions

View File

@ -310,35 +310,8 @@ variant logs the history to syslog.")))
(patches (patches
(search-patches "bash-completion-directories.patch")))) (search-patches "bash-completion-directories.patch"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (list util-linux))
(arguments (arguments
`(#:tests? #f ; Unclear how to make tests pass. `(#:tests? #f)) ; Unclear how to make tests pass.
#:phases (modify-phases %standard-phases
(add-after
'install 'remove-redundant-completions
(lambda* (#:key
inputs native-inputs
outputs #:allow-other-keys)
;; Util-linux comes with a bunch of completion files for
;; its own commands which are more sophisticated and
;; up-to-date than those of bash-completion. Remove those
;; from bash-completion.
(let* ((out (assoc-ref outputs "out"))
(util-linux (assoc-ref (or native-inputs inputs)
"util-linux"))
(completions (string-append out
"/share/bash-completion"
"/completions"))
(already (find-files
(string-append
util-linux
"/etc/bash_completion.d"))))
(with-directory-excursion completions
(for-each (lambda (file)
(when (file-exists? file)
(delete-file file)))
(map basename already)))
#t))))))
(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