From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins Subject: Re: Using IPFS to host mirrors of source packages Date: Sat, 12 Aug 2017 15:58:52 +0200 Message-ID: <20170812135852.GA25655@thebird.nl> References: <20170811151019.GB20919@thebird.nl> <87inhtykvj.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgWwv-00084V-5j for guix-devel@gnu.org; Sat, 12 Aug 2017 09:59:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgWws-000270-5C for guix-devel@gnu.org; Sat, 12 Aug 2017 09:59:33 -0400 Received: from mail.thebird.nl ([95.154.246.10]:40083) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dgWwr-000260-WA for guix-devel@gnu.org; Sat, 12 Aug 2017 09:59:30 -0400 Content-Disposition: inline In-Reply-To: <87inhtykvj.fsf@dustycloud.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Allan Webber Cc: guix-devel On Fri, Aug 11, 2017 at 02:17:36PM -0500, Christopher Allan Webber wrote: > I like the idea... a lot! > > Though I think we'll have to address, how do we *get* the packages from > IPFS? Do we use an http gateway (and whose)? It would be even better > if by using Guix you automatically could enable contributing to the IPFS > pool, but I guess that would require a) having an IPFS client in Guile > and b) having the Nix daemon replaced with Guile to do efficiently. > (But maybe I'm overthinking it?) We could start with an https gateway - probably the current guix distribution server would be a good choice - to share source packages hosted elsewhere. That would require no coding at all. Later a Guile ipfs-client added to the daemon can mean that IPFS can be queried directly. The Python API does not look too complicated: https://github.com/ipfs/py-ipfs-api/tree/master/ipfsapi Anyone interested in porting that? Pj. --