From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: Re: Using cuirass to build your own manifest. Date: Fri, 10 Mar 2017 18:27:46 +0100 Message-ID: <87d1dpjb3h.fsf@gmail.com> References: <87r328w58p.fsf@gmail.com> <8760jhfr39.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmOKX-0004if-E0 for guix-devel@gnu.org; Fri, 10 Mar 2017 12:27:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmOKU-0003tT-9C for guix-devel@gnu.org; Fri, 10 Mar 2017 12:27:53 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:34427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmOKU-0003tN-1r for guix-devel@gnu.org; Fri, 10 Mar 2017 12:27:50 -0500 Received: by mail-wm0-x244.google.com with SMTP id u132so84381wmg.1 for ; Fri, 10 Mar 2017 09:27:49 -0800 (PST) In-reply-to: <8760jhfr39.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: Chris Marusich Cc: guix-devel Hi Chris, > Hi Mathieu! > > Cool stuff! It's very interesting to see how others do things. I have > a basic Scheme question about what you did, though. Thank you ! > It looks like drv-package is a procedure which returns a procedure. Is > that correct? Yes it is. >> The drv-list procedure loads the file manifest.scm which content is >> detailed below. The list produced by drv-list looks like : >> >> (((#:job-name . "acpi-1.7-job") (#:derivation >> . "/gnu/store/r9s5x0ksj02hsw4n3acdxab8ggjp4z7y-acpi-1.7.drv")) ...) > > If drv-package is a procedure that returns a procedure, then it seems to > me like the the list produced by drv-list should look like a list of > procedures, but that isn't what you wrote. What am I misunderstanding? Yes you're right, the list produced by drv-list is in fact a list of procedures, as dictated by cuirass: ((lambda () '((#:job-name . "acpi-1.7-job") (#:derivation . "/gnu/store/r9s5x0ksj02hsw4n3acdxab8ggjp4z7y-acpi-1.7.drv"))) ...) Sorry for the mistake, Mathieu