[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having a problem invoking curl only when using guix pull
From: |
Brian Woodcox |
Subject: |
Re: Having a problem invoking curl only when using guix pull |
Date: |
Thu, 16 May 2019 16:53:35 -0600 |
> Perhaps all you need is to include the curl package in your package's
> native-inputs field.
>
> Also as a side note, I'm not entirely sure if using open-input-pipe would be
> considered good practice for packages as far as reproducibility is concerned.
> Perhaps someone else can comment on that.
> But another option you might want to consider is using the built in web
> modules.
> For example:
>
> #:use-module (web client)
> #:use-module (web uri)
> ...
> (let* ((out (call-with-values (lambda () (http-get (string->uri
> %api-url)))
> (lambda (response body) body)))
> ...
>
> I'm not sure if that's the most elegant way to do it, but it seems to work.
> There's also a curl module for guile, although I'm not sure if guix will let
> you
> import it or not.
Hi ison,
Unfortunately that doesn’t work, due to tls not being available.
See the bug I reported here —>
https://lists.gnu.org/archive/html/bug-guile/2019-04/msg00008.html
<https://lists.gnu.org/archive/html/bug-guile/2019-04/msg00008.html>
Thanks for the effort though.
Brian.