From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:38933) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfP6m-0001tB-PX for gwl-devel@gnu.org; Mon, 24 Jun 2019 09:34:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfP6l-0003nR-QX for gwl-devel@gnu.org; Mon, 24 Jun 2019 09:34:08 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hfP6l-0003TB-DK for gwl-devel@gnu.org; Mon, 24 Jun 2019 09:34:07 -0400 References: <87k1dft711.fsf@elephly.net> From: Ricardo Wurmus In-reply-to: Date: Mon, 24 Jun 2019 15:33:46 +0200 Message-ID: <875zovt8ed.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: what colour should the bikeshed have? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gwl-devel-bounces+kyle=kyleam.com@gnu.org Sender: "gwl-devel" To: zimoun Cc: gwl-devel@gnu.org zimoun writes: > However, I am a bit lost. Does this process still work? > > process: sleep > packages "coreutils" > run '(begin (display "Sleeping...\n") > (system* "sleep" "10")) Yes. The =E2=80=9Cprocedure=E2=80=9D field takes a plain S-expression, a G= -expression, or a code-snippet (which is what the =E2=80=9C# =E2=80=9D-syntax produces). > For consistency, why not? > run # guile { > blah > } Because it=E2=80=99s unnecessary. You can do this if you want a particular variant of Guile, of course. > And, is it better to declare explicitly "coreutils" as package input > when using bash? > Or implicitly? For example, if `run # python {}` is used then the > package input is implicitly python. > What do you think? I want this to be implicit, but currently this is not yet possible. Guix has no mechanism to collect inputs from G-expressions, so we can=E2=80= =99t automatically add the required inputs to the execution environment. Ludo has a patch for remote evaluation, though, which adds features that we can use for this purpose. -- Ricardo