mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: mpd: Install systemd service files.
* gnu/packages/mpd.scm (mpd)[arguments]: Add 'install-service-files' phase.
This commit is contained in:
parent
76b64381cb
commit
87b5209558
1 changed files with 11 additions and 0 deletions
|
@ -85,6 +85,17 @@ (define-public mpd
|
|||
(base32
|
||||
"0c0p61p3jfh89pnqwd9nrw55krfvvnzhkpdq53g6njvg0aybh1c3"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'install-service-files
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(systemd (string-append out "/etc/systemd/system"))
|
||||
(systemd-user (string-append out "/etc/systemd/user")))
|
||||
(install-file "systemd/system/mpd.service" systemd)
|
||||
(install-file "systemd/user/mpd.service" systemd-user)
|
||||
#t))))))
|
||||
(inputs `(("ao" ,ao)
|
||||
("alsa-lib" ,alsa-lib)
|
||||
("avahi" ,avahi)
|
||||
|
|
Loading…
Reference in a new issue