From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Reproducible profiles Date: Sat, 16 May 2015 22:05:05 +0200 Message-ID: <87382wmgpa.fsf@gnu.org> References: <87pp62iqmn.fsf@fsf.org> <87egmgu609.fsf@gnu.org> <87a8x4dabt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtiKm-00025F-Ek for guix-devel@gnu.org; Sat, 16 May 2015 16:05:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtiKh-0008Cm-W6 for guix-devel@gnu.org; Sat, 16 May 2015 16:05:20 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtiKh-0008Ci-T2 for guix-devel@gnu.org; Sat, 16 May 2015 16:05:15 -0400 In-Reply-To: <87a8x4dabt.fsf@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Sat, 16 May 2015 19:35:18 +0800") 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: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > And how about use specification instead of package, so I can: > > (manifest > (map package-specification->manifest-entry > '("emacs" > "font-adobe-source-han-sans:cn"))) Sure, with: (use-modules (gnu) (guix profiles)) (define package-specification->manifest-entry (compose package->manifest-entry specification->package)) The advantage of using package names like this is that it=E2=80=99s less sensitive to module changes; the disadvantage is that it is not as precise, particularly if there are several packages matching a given name. Ludo=E2=80=99.