From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] ui: 'package->recutils' serializes the source field. Date: Fri, 12 Aug 2016 10:41:22 +0200 Message-ID: <87vaz6bcr1.fsf@elephly.net> References: <87vazcce0a.fsf@gnu.org> <87r39zcfkz.fsf@gnu.org> <871t1zoz98.fsf@gmail.com> <87invbc6hn.fsf@gnu.org> <87ziombyrx.fsf@gnu.org> <87popglv3u.fsf@gnu.org> <87lh04ltg2.fsf@gnu.org> <32ade0cc-b971-a3fa-ea92-9b313955a373@uq.edu.au> <4e35f009-ba71-f430-65e6-e986365b0c77@uq.edu.au> <87twesd9jw.fsf@elephly.net> <87k2fnz7zl.fsf@gmail.com> <87ziojb6kj.fsf@elephly.net> <87lh02gzeo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYFIy-0008RF-RB for guix-devel@gnu.org; Fri, 12 Aug 2016 12:27:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYFIv-0005rL-IH for guix-devel@gnu.org; Fri, 12 Aug 2016 12:27:32 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYFIv-0005ob-AI for guix-devel@gnu.org; Fri, 12 Aug 2016 12:27:29 -0400 In-reply-to: <87lh02gzeo.fsf@gmail.com> 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: Alex Kost Cc: guix-devel , David Craven Alex Kost writes: > Yes, I agree that it's a good demonstration of using Scheme API to get > any package info you need. But many (probably most) people do not know > Guile and this Guix package API well enough, and for them it may be much > easier to operate on the recutils output of "guix package --show" in > their scripts. If I understand correctly, that's why David suggested > that patch. Yes, the recutils output could be used in scripts. My recommendation when dealing with source tarballs, however, is to call “guix build -S” on the package name that recutils provides — this gives the user the actual corresponding source. This seems to be sufficient for shell scripting purposes. ~~ Ricardo