From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: How to use "every"? Date: Fri, 09 Sep 2016 22:12:49 +0300 Message-ID: <87eg4szy32.fsf@gmail.com> References: <20160909150151.495c7957@scratchpost.org> <87vay5qkwk.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biREQ-0003mJ-8C for Guix-devel@gnu.org; Fri, 09 Sep 2016 15:12:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biREK-0003yf-7L for Guix-devel@gnu.org; Fri, 09 Sep 2016 15:12:57 -0400 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]:32805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biREJ-0003yY-Uy for Guix-devel@gnu.org; Fri, 09 Sep 2016 15:12:52 -0400 Received: by mail-lf0-x22b.google.com with SMTP id h127so50822109lfh.0 for ; Fri, 09 Sep 2016 12:12:51 -0700 (PDT) In-Reply-To: <87vay5qkwk.fsf@ike.i-did-not-set--mail-host-address--so-tickle-me> (Marius Bakke's message of "Fri, 09 Sep 2016 14:10:03 +0100") 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: Marius Bakke Cc: Guix-devel Marius Bakke (2016-09-09 14:10 +0100) wrote: > Danny Milosavljevic writes: > >> Hi, >> >> how do I use "every" in a guix package declaration? >> >> When I add #:modules (sfri sfri-1) I get a message that guix-build is >> undefined (?). > > I think when setting #:modules, you also have to specify the > "expected" ones, i.e. it will override the defaults rather than append. Yes, you are absolutely right. Danny, if you look at 'gnu-build' procedure in (guix build-system gnu) module, you can see that the default value for 'modules' keyword is '%default-modules' defined earlier in this module, so as Marius wrote, when you specify #:modules argument in a package declaration, you have to specify these default modules along with the additional ones. > So argument would be: > > #:modules ((srfi srfi-1) > (guix build gnu-build-system) > (guix build utils)) > > But I am pretty new to Guile and Guix, so take it with a grain of salt. -- Alex