From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 1/1] gnu: mpd: Install systemd service files. Date: Thu, 29 Dec 2016 11:34:13 -0500 Message-ID: <1a6e2e3a7803ea04a4474badacade9ca5c87d101.1483029229.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMdf4-00065J-4i for guix-devel@gnu.org; Thu, 29 Dec 2016 11:34:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMdf1-0001o1-32 for guix-devel@gnu.org; Thu, 29 Dec 2016 11:34:38 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:48057) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMdf0-0001mR-Sc for guix-devel@gnu.org; Thu, 29 Dec 2016 11:34:35 -0500 Received: from localhost.localdomain (c-73-188-17-148.hsd1.pa.comcast.net [73.188.17.148]) by mail.messagingengine.com (Postfix) with ESMTPA id DBBEF7EA48 for ; Thu, 29 Dec 2016 11:34:33 -0500 (EST) In-Reply-To: In-Reply-To: References: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/mpd.scm (mpd)[arguments]: Add 'install-service-files' phase. --- gnu/packages/mpd.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm index 36a31048a..5231c3f7f 100644 --- a/gnu/packages/mpd.scm +++ b/gnu/packages/mpd.scm @@ -85,6 +85,17 @@ interfacing MPD in the C, C++ & Objective C languages.") (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) -- 2.11.0