From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Scripting guix in guile Date: Mon, 02 Sep 2019 13:50:09 +0200 Message-ID: <87sgpeape6.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37879) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4kqa-0000wv-S2 for help-guix@gnu.org; Mon, 02 Sep 2019 07:50:13 -0400 In-Reply-To: (Konrad Hinsen's message of "Sat, 31 Aug 2019 19:03:37 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Konrad Hinsen Cc: help-guix@gnu.org Hi Konrad, Konrad Hinsen skribis: > The problems I see are > > 1. What to put into the #! line to locate Guile. On Guix System #!/run/current-system/profile/bin/guile is very likely to work :-), but on other systems you could use =E2=80=9C#!/usr/bin/env guile= =E2=80=9D I suppose. > 2. How to construct the load path to make sure it includes > Guix as installed under $HOME/.config/guix/current That=E2=80=99s indeed annoying. I think we should add =E2=80=98-s=E2=80=99= and similar flags that =E2=80=98guile=E2=80=99 supports to =E2=80=98guix repl=E2=80=99. In the meantime, as Jesse suggested, you could arrange to have both =E2=80=98guix=E2=80=99 (the package) and =E2=80=98guile=E2=80=99 in a profi= le, such that Guix and its dependencies are available in $GUILE_LOAD_PATH. As for inspecting the installed packages, the entry point is (guix profiles), which has everything you need to grab info about a profile. HTH! Ludo=E2=80=99.