From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Scripting guix in guile Date: Sat, 31 Aug 2019 19:03:37 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36154) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i46ms-0002Gv-BY for help-guix@gnu.org; Sat, 31 Aug 2019 13:03:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i46mr-0005Dx-H7 for help-guix@gnu.org; Sat, 31 Aug 2019 13:03:42 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33571) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i46mr-0005DL-9n for help-guix@gnu.org; Sat, 31 Aug 2019 13:03:41 -0400 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: help-guix@gnu.org Hi everyone, I'd like to write Guile scripts that inspect Guix, for example analyze the packages is my profile. That turned out to be a lot more difficult than I expected, and in fact I haven't found a satisfying general solution yet, meaning a script that I could publish in such a way that any Guix user could download and run it without modification. The problems I see are 1. What to put into the #! line to locate Guile. 2. How to construct the load path to make sure it includes Guix as installed under $HOME/.config/guix/current I wonder if could somehow hijack 'guix repl', which solves these problems for a REPL but not for scripts. Any ideas? Konrad