From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH] services: Use 'packages->manifest' in 'packages->profile-entry'. Date: Sun, 6 Mar 2016 21:34:52 +0800 Message-ID: <1457271292-16747-1-git-send-email-iyzsong@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acYqA-0005nk-UD for guix-devel@gnu.org; Sun, 06 Mar 2016 08:35:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acYq7-0000ch-PY for guix-devel@gnu.org; Sun, 06 Mar 2016 08:35:22 -0500 Received: from smtp25.openmailbox.org ([62.4.1.59]:58381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acYq7-0000cb-JN for guix-devel@gnu.org; Sun, 06 Mar 2016 08:35:19 -0500 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= This allows using (PACKAGE OUTPUT) in the packages field. Reported by Jan Nieuwenhuizen . * gnu/services.scm (packages->profile-entry): Use 'packages->manifest'. --- gnu/services.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/services.scm b/gnu/services.scm index ffba418..cff6ed3 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -458,8 +458,8 @@ FILES must be a list of name/file-like object pairs." (define (packages->profile-entry packages) "Return a system entry for the profile containing PACKAGES." (mlet %store-monad ((profile (profile-derivation - (manifest (map package->manifest-entry - (delete-duplicates packages eq?)))))) + (packages->manifest + (delete-duplicates packages eq?))))) (return `(("profile" ,profile))))) (define profile-service-type -- 2.6.3