From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luther Thompson Subject: Re: How do I define a package? Date: Wed, 29 Aug 2018 18:40:34 -0400 Message-ID: <20180829184034.084e6082@gmail.com> References: <20180814182239.544a70f0@gmail.com> <87k1osvath.fsf@gmail.com> <20180816183430.51a561e6@gmail.com> <20180822060126.GA2666@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fv98n-0006A4-Ns for help-guix@gnu.org; Wed, 29 Aug 2018 18:40:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fv98i-0001KQ-Os for help-guix@gnu.org; Wed, 29 Aug 2018 18:40:45 -0400 Received: from mail-yb0-x22d.google.com ([2607:f8b0:4002:c09::22d]:43944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fv98i-0001K7-J5 for help-guix@gnu.org; Wed, 29 Aug 2018 18:40:40 -0400 Received: by mail-yb0-x22d.google.com with SMTP id k5-v6so2665585ybo.10 for ; Wed, 29 Aug 2018 15:40:40 -0700 (PDT) In-Reply-To: <20180822060126.GA2666@jasmine.lan> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Leo Famulari Cc: help-guix@gnu.org, Pierre Neidhardt On Wed, 22 Aug 2018 02:01:26 -0400 Leo Famulari wrote: > Looking at some other Guix packages using the scons-build-system, it > seems like the Sconscripts usually take a 'PREFIX' or 'prefix' > argument that should contain the output directory in /gnu/store. > > For example: > > ------ > (build-system scons-build-system) > (arguments > `(#:tests? #f ;no tests > #:scons-flags > (list (string-append "prefix=" (assoc-ref %outputs "out"))) > ------ That fixed it. Thanks! For other people reading this, the "prefix=" is an arbitrary argument that the SConstruct has to look for in the ARGUMENTS dict. For example, I used `ARGUMENTS.get('prefix', '/usr/local')`. Regards, Luther