mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: bash-completion: Fix cross-compilation.
* gnu/packages/bash.scm (bash-completion)[arguments]: Search for util-linux in native-inputs and inputs during "remove-redundant-completions" phase.
This commit is contained in:
parent
6c6a049b13
commit
d8dbfbce60
1 changed files with 6 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
;;; Copyright © 2015, 2017 Leo Famulari <leo@famulari.name>
|
||||
;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -291,13 +292,16 @@ (define-public bash-completion
|
|||
`(#:phases (modify-phases %standard-phases
|
||||
(add-after
|
||||
'install 'remove-redundant-completions
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(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 inputs "util-linux"))
|
||||
(util-linux (assoc-ref (or native-inputs inputs)
|
||||
"util-linux"))
|
||||
(completions (string-append out
|
||||
"/share/bash-completion"
|
||||
"/completions"))
|
||||
|
|
Loading…
Reference in a new issue