gnu: rbw: Fix bash completion directory.

* gnu/packages/rust-apps.scm (rbw)[arguments]: Adjust the custom
'install-completions phase to install the bash completions in the
correct directory.

Change-Id: Icbc1cca324c503aa4171c581446cc0798311fe2a
This commit is contained in:
Efraim Flashner 2024-12-25 11:56:30 +02:00
parent e4c31be0aa
commit f5d95d6d19
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3358,9 +3358,9 @@ runs a command whenever it detects modifications.")
(rbw (if ,(%current-target-system)
(search-input-file native-inputs "/bin/rbw")
(string-append out "/bin/rbw"))))
(mkdir-p (string-append share "/bash-completion/completions"))
(mkdir-p (string-append out "/etc/bash_completion.d"))
(with-output-to-file
(string-append share "/bash-completion/completions/rbw")
(string-append out "/etc/bash_completion.d/rbw")
(lambda _ (invoke rbw "gen-completions" "bash")))
(mkdir-p (string-append share "/fish/vendor_completions.d"))
(with-output-to-file