From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: guix-shell? Date: Tue, 26 Aug 2014 07:32:05 -0400 Message-ID: <87d2bn32ru.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> References: <87fvgo3mlx.fsf@gnu.org> <87zjesgqc5.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]:50129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMEz1-0005qi-32 for guix-devel@gnu.org; Tue, 26 Aug 2014 07:32:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMEyv-0000w5-AM for guix-devel@gnu.org; Tue, 26 Aug 2014 07:32:15 -0400 Received: from na6sys009bog033.obsmtp.com ([74.125.150.107]:55754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMEyv-0000vz-5Y for guix-devel@gnu.org; Tue, 26 Aug 2014 07:32:09 -0400 Received: by mail-qa0-f45.google.com with SMTP id cm18so13600325qab.32 for ; Tue, 26 Aug 2014 04:32:08 -0700 (PDT) In-Reply-To: <87zjesgqc5.fsf_-_@gnu.org> 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 Ludovic Court=C3=A8s writes: > "Thompson, David" skribis: > >> I hope we can make use of Nix's {pip,bower,node,...}2nix scripts and >> make Guix versions. But first, we need to write guix-shell! > > I think nix-shell is mostly equivalent to: > > eval `guix package --search-paths` > > Although maybe it would be better to have a command that does it without > actually having to create a profile. > Hmm, I thought that this was a perfect use-case for profiles. I haven't read the source to nix-shell yet, but I inferred that it essentially did the following: 1) Create profile in project directory 2) Install dependencies 3) Run the desired shell 4) Prepend the new profile's /bin to $PATH 5) Set search path env vars How would we do it without creating a profile? --=20 David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate