From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Woodcox Subject: Re: Having a problem invoking curl only when using guix pull Date: Thu, 16 May 2019 16:53:35 -0600 Message-ID: <98FF32C2-9951-45EE-A08D-DBED578C004A@inskydata.com> Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRPGI-0004UY-Cv for help-guix@gnu.org; Thu, 16 May 2019 18:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRPGH-0001pv-8W for help-guix@gnu.org; Thu, 16 May 2019 18:54:06 -0400 Received: from mail.inskydata.com ([184.68.229.6]:37934 helo=server.inskydata.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRPGG-0001mA-W0 for help-guix@gnu.org; Thu, 16 May 2019 18:54:05 -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, ison@airmail.cc > Perhaps all you need is to include the curl package in your package's > native-inputs field. >=20 > 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: >=20 > #:use-module (web client) > #:use-module (web uri) > ... > (let* ((out (call-with-values (lambda () (http-get (string->uri = %api-url))) > (lambda (response body) body))) > ... >=20 > 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=E2=80=99t work, due to tls not being available. See the bug I reported here =E2=80=94> = https://lists.gnu.org/archive/html/bug-guile/2019-04/msg00008.html = Thanks for the effort though. Brian.=