unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: HiPhish <hiphish@posteo.de>
To: help-guix@gnu.org
Subject: Setting up Guile for use with Guix
Date: Fri, 17 Aug 2018 13:39:44 +0200	[thread overview]
Message-ID: <2447956.hYbaDOQMAf@aleksandar-ixtreme-m5740> (raw)

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.

             reply	other threads:[~2018-08-17 11:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17 11:39 HiPhish [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-08-17 12:34 Setting up Guile for use with Guix HiPhish
2018-08-17 15:46 ` Pierre Neidhardt
2018-08-18 21:40   ` HiPhish
2018-08-24 22:17     ` Ludovic Courtès
2018-08-19 20:41 ` Amirouche Boubekki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2447956.hYbaDOQMAf@aleksandar-ixtreme-m5740 \
    --to=hiphish@posteo.de \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).