unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix with guile-next
@ 2016-10-07 16:19 Catonano
  2016-10-07 16:31 ` Thompson, David
  2016-10-07 16:47 ` Amirouche Boubekki
  0 siblings, 2 replies; 3+ messages in thread
From: Catonano @ 2016-10-07 16:19 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

If I do

$ guix environment --ad-hoc guix guile
$ guile
> (use-modules (guix http-client))

it's ok.

If I do

$ guix environment --ad-hoc guix guile-next ;; <-- note the "-next"
$ guile
> (use-modules (guix http-client))

Then there is no code for module http-client

Is there any hope that I can load some guix modules from within a
guile-next prompt ?

I'm asking this because I am exploring Culturia and that requires
guile-next.
I'd like to use the guix http-client and the Culturia machinery together

[-- Attachment #2: Type: text/html, Size: 742 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix with guile-next
  2016-10-07 16:19 guix with guile-next Catonano
@ 2016-10-07 16:31 ` Thompson, David
  2016-10-07 16:47 ` Amirouche Boubekki
  1 sibling, 0 replies; 3+ messages in thread
From: Thompson, David @ 2016-10-07 16:31 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

On Fri, Oct 7, 2016 at 12:19 PM, Catonano <catonano@gmail.com> wrote:
> If I do
>
> $ guix environment --ad-hoc guix guile
> $ guile
>> (use-modules (guix http-client))
>
> it's ok.
>
> If I do
>
> $ guix environment --ad-hoc guix guile-next ;; <-- note the "-next"
> $ guile
>> (use-modules (guix http-client))
>
> Then there is no code for module http-client

This is because Guix is built with Guile 2.0, not Guile 2.1.  You need
to make a variant of the guix package that uses guile-next.

- Dave

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: guix with guile-next
  2016-10-07 16:19 guix with guile-next Catonano
  2016-10-07 16:31 ` Thompson, David
@ 2016-10-07 16:47 ` Amirouche Boubekki
  1 sibling, 0 replies; 3+ messages in thread
From: Amirouche Boubekki @ 2016-10-07 16:47 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix, Help-Guix

On 2016-10-07 18:19, Catonano wrote:
> If I do
> 
> $ guix environment --ad-hoc guix guile
> 
> $ guile
> 
>> (use-modules (guix http-client))
> 
> it's ok.
> 
> If I do
> 
> $ guix environment --ad-hoc guix guile-next ;; <-- note the "-next"
> 
> $ guile
>> (use-modules (guix http-client))
> 
> Then there is no code for module http-client
> 
> Is there any hope that I can load some guix modules from within a
> guile-next prompt ?
> 
> I'm asking this because I am exploring Culturia and that requires
> guile-next.
> 
> I'd like to use the guix http-client and the Culturia machinery
> together

IIRC guix on guile-next is in the work, in the mean time you can use
the http.scm module from culturia [0] which relies on curl command line.
There is even a chime for http-get which works with https.

Be aware that I've hit some issues with that procedure, I'm not sure
but I think under some condition it leaks memory...

Don't hesitate to ask if you hit issues.

HTH,

[0] https://github.com/amirouche/Culturia/blob/master/src/http.scm

-- 
Amirouche ~ amz3 ~ http://www.hyperdev.fr

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-07 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-07 16:19 guix with guile-next Catonano
2016-10-07 16:31 ` Thompson, David
2016-10-07 16:47 ` Amirouche Boubekki

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).