From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Lirzin Subject: Re: Build custom packages with cuirass. Date: Mon, 23 Jan 2017 00:42:32 +0100 Message-ID: <87h94qpspj.fsf@gnu.org> References: <87shobkseu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVRmQ-0003BG-K1 for guix-devel@gnu.org; Sun, 22 Jan 2017 18:42:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVRmN-0002zp-IL for guix-devel@gnu.org; Sun, 22 Jan 2017 18:42:38 -0500 Received: from mta-out.u-bordeaux.fr ([147.210.215.83]:55941 helo=v-zimmta03.u-bordeaux.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVRmN-0002zO-BO for guix-devel@gnu.org; Sun, 22 Jan 2017 18:42:35 -0500 In-Reply-To: <87shobkseu.fsf@gmail.com> (Mathieu OTHACEHE's message of "Sun, 22 Jan 2017 16:47:53 +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: Mathieu OTHACEHE Cc: guix-devel Hi, Mathieu OTHACEHE writes: > I'm trying to use cuirass to build all the packages of my current > manifest on top of guix master periodically. > > Some of my packages are custom, so I need cuirass to be aware of > GUIX_PACKAGE_PATH env variable. > > The only way I found is to patch cuirass service (cf. following patch). > Is this a good idea ? Is someone doing this kind of stuff here ? A quick and dirty way to fix your issue would be to add the absolute base directory name for your custom package modules in the '#:load-path' part of you specification. However this will only work if your modules names are '(gnu packages ...)'. I guess Cuirass should handle this use case with '-L', '--load-path' command line arguments like what 'guix build' does. WDYT? Would you be interested in implementing this? Thanks. -- Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37