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 | |
parent | 2e0ed79118440a28fe14939dbafbad1e01180451 (diff) | |
download | guix-577fd21122ca50ab7594be9adf0c5c06d5b26678.tar.gz guix-577fd21122ca50ab7594be9adf0c5c06d5b26678.zip |
gnu: mpd-mpc: Install bash completions in correct location.
* gnu/packages/mpd.scm (mpd-mpc)[#:phases]: Add ‘move-completion’.
-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 86f18e8d77..3f9e2b8d91 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm @@ -246,7 +246,16 @@ protocol.") ;; actually invoked. (lambda _ (substitute* "doc/meson.build" - (("rsync") "ls"))))))) + (("rsync") "ls")))) + (add-after 'install 'move-completion + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (contrib (string-append out "/share/doc/mpc/contrib")) + (completion + (string-append out "/etc/bash-completion.d/"))) + (mkdir-p completion) + (rename-file (string-append contrib "/mpc-completion.bash") + (string-append completion "/mpc")))))))) (inputs (list libmpdclient)) (native-inputs (list pkg-config python-sphinx)) |