From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: How to get the package metadata as structured data? Date: Wed, 10 Aug 2016 13:46:05 +0200 Message-ID: <87y444deyq.fsf@elephly.net> References: <87a8gss0mc.fsf@gnu.org> <56f534d8cd574be59d39ad3a3ca5a1b6@exchsrv2.sgc.loc> 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]:48695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXRxj-0004tT-NU for guix-devel@gnu.org; Wed, 10 Aug 2016 07:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXRxd-0005Tb-9h for guix-devel@gnu.org; Wed, 10 Aug 2016 07:46:18 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXRxd-0005TR-1E for guix-devel@gnu.org; Wed, 10 Aug 2016 07:46:13 -0400 In-reply-to: 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: Philippe Ombredanne Cc: guix-devel Philippe Ombredanne writes: > David Craven wrote: >> I aborted, since I realised that guix package -s doesn't include the >> source url and hash, which would be important for a testsuite... > > IMHO, if the rec data is the only way to get to the packages data, the > source url would be rather essential to get in. The recutils output is not the *only* way to access the package data. All packages in Guix are just Scheme variables. Package data are available as S-expressions and can be read by Scheme programs or parsed by external applications. The recutils output is just an additional format used when interacting with Guix on the command line. (Personally, I’m not enthusiastic about adding a serialised form of the source field to the recutils output.) ~~ Ricardo