gnu: wl-clipboard: Fix shell completion directories.
* gnu/packages/xdisorg.scm (wl-clipboard)[arguments]: Adjust configure-flags to install fish completions into correct directory. Add a phase to install the bash completions into the correct directory. Change-Id: If31b477926e3d4c1d8f74e9224af2dea59740f77master
parent
7c5d4031c9
commit
c22e027828
|
@ -2773,9 +2773,16 @@ Wayland and @code{wlroots} by leveraging @command{grim} and @command{slurp}.")
|
||||||
#~(list (string-append "-Dzshcompletiondir=" #$output
|
#~(list (string-append "-Dzshcompletiondir=" #$output
|
||||||
"/share/zsh/site-functions")
|
"/share/zsh/site-functions")
|
||||||
(string-append "-Dfishcompletiondir=" #$output
|
(string-append "-Dfishcompletiondir=" #$output
|
||||||
"/share/fish/completions"))
|
"/share/fish/vendor_completions.d"))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'fix-bash-completion-dir
|
||||||
|
(lambda _
|
||||||
|
(substitute* "completions/bash/meson.build"
|
||||||
|
(("bash_completion_dir =.*")
|
||||||
|
(string-append "bash_completion_dir = "
|
||||||
|
"join_paths(get_option('sysconfdir'), "
|
||||||
|
"'bash_completion.d')\n")))))
|
||||||
(add-after 'unpack 'patch-file-names
|
(add-after 'unpack 'patch-file-names
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* (find-files "src" "\\.c$")
|
(substitute* (find-files "src" "\\.c$")
|
||||||
|
|
Reference in New Issue