diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-09-29 20:45:33 +0200 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2023-10-08 08:48:15 +0200 |
| commit | 577fd21122ca50ab7594be9adf0c5c06d5b26678 (patch) | |
| tree | c61acb6ef48891a45b5c7b426102ac15ac98e64e /gnu/packages/mpd.scm | |
| parent | 2e0ed79118440a28fe14939dbafbad1e01180451 (diff) | |
gnu: mpd-mpc: Install bash completions in correct location.
* gnu/packages/mpd.scm (mpd-mpc)[#:phases]: Add ‘move-completion’.
Diffstat (limited to 'gnu/packages/mpd.scm')
| -rw-r--r-- | gnu/packages/mpd.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 86f18e8d770..3f9e2b8d91f 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm | |||
| @@ -246,7 +246,16 @@ protocol.") | |||
| 246 | ;; actually invoked. | 246 | ;; actually invoked. |
| 247 | (lambda _ | 247 | (lambda _ |
| 248 | (substitute* "doc/meson.build" | 248 | (substitute* "doc/meson.build" |
| 249 | (("rsync") "ls"))))))) | 249 | (("rsync") "ls")))) |
| 250 | (add-after 'install 'move-completion | ||
| 251 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 252 | (let* ((out (assoc-ref outputs "out")) | ||
| 253 | (contrib (string-append out "/share/doc/mpc/contrib")) | ||
| 254 | (completion | ||
| 255 | (string-append out "/etc/bash-completion.d/"))) | ||
| 256 | (mkdir-p completion) | ||
| 257 | (rename-file (string-append contrib "/mpc-completion.bash") | ||
| 258 | (string-append completion "/mpc")))))))) | ||
| 250 | (inputs (list libmpdclient)) | 259 | (inputs (list libmpdclient)) |
| 251 | (native-inputs | 260 | (native-inputs |
| 252 | (list pkg-config python-sphinx)) | 261 | (list pkg-config python-sphinx)) |
