From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: [PATCH 2/5] profiles: gtk-icon-themes: Use 'gtk-update-icon-cache' from 'gtk+:bin'. Date: Fri, 19 Aug 2016 03:15:39 -0400 Message-ID: <874m6hut44.fsf@netris.org> References: <20160806104616.13089-1-iyzsong@gmail.com> <20160806104616.13089-2-iyzsong@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]:41323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bae21-0007zK-Tr for guix-devel@gnu.org; Fri, 19 Aug 2016 03:15:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bae1w-0000PV-Rn for guix-devel@gnu.org; Fri, 19 Aug 2016 03:15:57 -0400 Received: from world.peace.net ([50.252.239.5]:35339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bae1w-0000PQ-O8 for guix-devel@gnu.org; Fri, 19 Aug 2016 03:15:52 -0400 In-Reply-To: <20160806104616.13089-2-iyzsong@gmail.com> (=?utf-8?B?Ig==?= =?utf-8?B?5a6L5paH5q2mIidz?= message of "Sat, 6 Aug 2016 18:46:13 +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" To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > * guix/profiles.scm (gtk-icon-themes): Use 'gtk-update-icon-cacnhe' from > the "bin" output of gtk+ package. > --- > guix/profiles.scm | 21 +++++++++++++++------ > 1 file changed, 15 insertions(+), 6 deletions(-) > > diff --git a/guix/profiles.scm b/guix/profiles.scm > index db807a8..9c2dbba 100644 > --- a/guix/profiles.scm > +++ b/guix/profiles.scm > @@ -642,7 +642,18 @@ MANIFEST. Single-file bundles are required by progr= ams such as Git and Lynx." > (define (gtk-icon-themes manifest) > "Return a derivation that unions all icon themes from manifest entries= and > creates the GTK+ 'icon-theme.cache' file for each theme." > - (mlet %store-monad ((gtk+ (manifest-lookup-package manifest "gtk+"))) > + (define gtk+ ; lazy reference > + (module-ref (resolve-interface '(gnu packages gtk)) 'gtk+)) > + > + (mlet %store-monad ((%gtk+ (manifest-lookup-package manifest "gtk+")) > + ;; XXX: Can't use gtk-update-icon-cache correspond= ing > + ;; to the gtk+ referenced by 'manifest'. Because > + ;; '%gtk+' can be either a package or store path, = and > + ;; there's no way to get the "bin" output for the = later. > + (gtk-update-icon-cache > + -> #~(string-append #+gtk+:bin > + "/bin/gtk-update-icon-cache")= )) Hmm. Would this cause 'gtk+' to become a dependency for building any profile, even if it contains no graphical programs? Mark