From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Emacs interface for Guix Date: Wed, 16 Jul 2014 23:05:32 +0400 Message-ID: <87vbqxqg3n.fsf@gmail.com> References: <87zjg9rgih.fsf@gmail.com> <871ttlgzfl.fsf@gnu.org> 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]:57338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7UWN-0004fw-Rq for guix-devel@gnu.org; Wed, 16 Jul 2014 15:05:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7UWE-0006Av-4N for guix-devel@gnu.org; Wed, 16 Jul 2014 15:05:43 -0400 In-Reply-To: <871ttlgzfl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 16 Jul 2014 16:18:06 +0200") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s (2014-07-16 18:18 +0400) wrote: > Hi! > > Alex Kost skribis: > >> I'm working on Emacs UI for Guix and I have pushed something that >> can be tried. Currently there is no interacting with Guix daemon so >> such actions as deleting, installing,... are not supported yet. But it >> is possible to search for and show info about packages. > > Just tried it, and it works great! > >> Important: Geiser is required; and the first start of the REPL may take a >> long time. > > That=E2=80=99s because it=E2=80=99s rebuilding most of the modules, AFAIC= S. Perhaps > =E2=80=98geiser-guile-load-path=E2=80=99 needs to be augmented to avoid t= hat? Do you mean some guix directories should be added to that var? But how to know the paths before starting guile? Can't the default paths be changed during "./conigure"-ing? Actually I think it's not a problem as auto-compiling of all needed modules takes place only in the first start, besides it may be disabled: (setq guix-guile-program '("guile" "--no-auto-compile")) >> Also if anyone is interested, I appreciate any help with the scheme >> code. I need a function returning a list of installed packages, and a >> function "package-installed?". > > There=E2=80=99s =E2=80=98manifest-installed?=E2=80=99 in (guix profiles): > > scheme@(guile-user)> ,use(guix profiles) > scheme@(guile-user)> (define m (call-with-input-file "/home/ludo/.guix-pr= ofile/manifest" read-manifest)) > scheme@(guile-user)> (manifest-installed? m (manifest-pattern (name "emac= s"))) > $3 =3D #t > > See tests/profiles.scm for more examples. Yes, this helps a lot, thank you! Now I can move further. -- Alex