From mboxrd@z Thu Jan 1 00:00:00 1970 From: HiPhish Subject: Setting up Guile for use with Guix Date: Fri, 17 Aug 2018 13:39:44 +0200 Message-ID: <2447956.hYbaDOQMAf@aleksandar-ixtreme-m5740> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqd6p-0000qZ-H9 for help-guix@gnu.org; Fri, 17 Aug 2018 07:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqd6k-0004AN-JL for help-guix@gnu.org; Fri, 17 Aug 2018 07:40:03 -0400 Received: from mout02.posteo.de ([185.67.36.66]:38531) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fqd6k-00044z-9u for help-guix@gnu.org; Fri, 17 Aug 2018 07:39:58 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 60820211CE for ; Fri, 17 Aug 2018 13:39:48 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 41sLpW4hdYz9rxF for ; Fri, 17 Aug 2018 13:39:47 +0200 (CEST) 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 Hello everyone, I have Guix up and running on my Kubuntu 18.04 machine. I installed it manually from the binary: I first installed Guile 2.2.3 via apt, then I installed Guix. I wanted to do some more serious Guile work involving libraries, and since Guile does not have a package manager of its own, using Guix is the way to go. Here is my question: how do I properly set up Guile on Guix? I already have Guile set up system-wide (via apt), but packages like Haunt list Guile as their own dependency. Will this install a second Guile for me (one system-wide from apt and one for the Guix profile from Guix)? Should I uninstall the Guile from apt? How do I even set up Guile to work with Guix packages? I don't have any installed yet, but when I open a regular Guile REPL and type (use-modules (guix gexp)) I get an error that the '(guix gexp)' module could not be found. So obviously I need to set up Guile first before I can use it to script Guix. I assume the same is true for other Guile libraries. Speaking of which, if there are two libraries, and each one lists a different version of Guile as its dependency, will it be possible to use both libraries in the same project? I don't quite understand the concepts of functional package management yet. How do I need to set up my environment for working with libraries? Am I supposed to create a custom per-project profile, switch to that profile while working, and then switch back to normal once done? In my case I want to install Haunt. There are two packages: 'haunt' and 'guile2.0-haunt', the only difference seems to be which version of Guile they require. Right? To make matters more complicated, Haunt is not just a library, but also a stand-alone command-line program, which (I presume) includes its own Guile implementation, and so I need to make my own libraries available to Haunt's Guile, not the Guile I installed on my system. I just need to wrap my head around the functional way of package management, instead of the classical "lol, just throw everything into the global state" system. Thank you in advance for your responses.