From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33113) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfnRK-0007U4-8V for gwl-devel@gnu.org; Tue, 25 Jun 2019 11:32:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfnRJ-0003ap-6Z for gwl-devel@gnu.org; Tue, 25 Jun 2019 11:32:58 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hfnRI-0003UV-Os for gwl-devel@gnu.org; Tue, 25 Jun 2019 11:32:57 -0400 References: <87k1dft711.fsf@elephly.net> From: Ricardo Wurmus Message-ID: <87mui5smsv.fsf@elephly.net> In-reply-to: Date: Tue, 25 Jun 2019 17:32:44 +0200 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")) I should note that this will *not* work in a container because =E2=80=9Csle= ep=E2=80=9D would not be found in the container environment. > And, is it better to declare explicitly "coreutils" as package input > when using bash? =E2=80=9Ccoreutils=E2=80=9D only needs to be specified when they are used. = We need it in the example because =E2=80=9Csleep=E2=80=9D is provided by =E2=80=9Ccore= utils=E2=80=9D. That=E2=80=99s unrelated to the use of Bash. > Or implicitly? For example, if `run # python {}` is used then the > package input is implicitly python. > What do you think? This is still on my list for when G-expressions are used (and it depends on features that are waiting to arrive in Guix), but I just added another convenience in commit 82ba9bad073d717c9e6fd9cf243cd6d94f674283. If you don=E2=80=99t really care for bash and just want to use a shell you = can leave off the interpreter and default to /bin/sh. This works now: process: greet packages "hello" # { hello } -- Ricardo