From mboxrd@z Thu Jan 1 00:00:00 1970 From: ison Subject: Re: Having a problem invoking curl only when using guix pull Date: Wed, 15 May 2019 21:13:46 -0600 Message-ID: <20190516031346.veqwurk6iacyxcij@cf0> References: <3483615C-9CB3-4184-B1F4-A4D19542FCA5@inskydata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hR747-0006Ir-0w for help-guix@gnu.org; Wed, 15 May 2019 23:28:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hR6qB-0003Pu-6u for help-guix@gnu.org; Wed, 15 May 2019 23:13:56 -0400 Received: from [2a06:1700:0:b:1::1] (port=54116 helo=cock.li) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hR6qA-0003MQ-L2 for help-guix@gnu.org; Wed, 15 May 2019 23:13:55 -0400 Content-Disposition: inline In-Reply-To: <3483615C-9CB3-4184-B1F4-A4D19542FCA5@inskydata.com> 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: Brian Woodcox Cc: help-guix@gnu.org 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.