From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:52861) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hagnn-0005FY-DG for guix-patches@gnu.org; Tue, 11 Jun 2019 09:27:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hagnm-0001kh-0F for guix-patches@gnu.org; Tue, 11 Jun 2019 09:27:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hagnl-0001kX-Sl for guix-patches@gnu.org; Tue, 11 Jun 2019 09:27:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hagnl-0002Gr-Lb for guix-patches@gnu.org; Tue, 11 Jun 2019 09:27:01 -0400 Subject: [bug#36162] [PATCH 0/4] Add 'remote-eval' Resent-Message-ID: References: <20190610210853.5709-1-ludo@gnu.org> From: Ricardo Wurmus In-reply-to: <20190610210853.5709-1-ludo@gnu.org> Date: Tue, 11 Jun 2019 15:26:40 +0200 Message-ID: <87pnnk9rsf.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36162@debbugs.gnu.org Ludovic Court=C3=A8s writes: > This patch series add =E2=80=98remote-eval=E2=80=99, which takes a gexp, = remotely deploys > everything the gexp refers to, and evaluates it (see > for > the initial discussion.) So you can have gexps like: > > #~(execl #$(file-append ffmpeg "/bin/ffmpeg") =E2=80=A6) > > When you evaluate it, this specific =E2=80=98ffmpeg=E2=80=99 will be depl= oyed over there. > Another example is: > > (with-imported-modules (source-module-closure '((gnu services herd))) > #~(begin > (use-modules (gnu services herd)) > (map live-service-provision (current-services)))) > This gexp, when evaluated remotely, will use your very own (gnu services > herd) module and the corresponding Guile (so if you=E2=80=99re on Guile 3= and the > remote is still on Guile 2, that=E2=80=99s fine: Guile 3 will first be de= ployed > there.) > > =E2=80=98remote-eval=E2=80=99 allows you to build locally and send the bu= ild results, > or to send the derivations and build remotely. This is great and just what I need for the install-berlin.scm script in the =E2=80=9Cmaintenance=E2=80=9D repository where I need to deploy a parti= cular version of Guix to the target system before using that version of Guix to reconfigure the remote system. Thank you! -- Ricardo