me
/
guix
Archived
1
0
Fork 0

gnu: mpd-mpc: Install bash completions in correct location.

* gnu/packages/mpd.scm (mpd-mpc)[#:phases]: Add ‘move-completion’.
master
Liliana Marie Prikler 2023-09-29 20:45:33 +02:00
parent 2e0ed79118
commit 577fd21122
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 10 additions and 1 deletions

View File

@ -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))