[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I define a package?
From: |
Luther Thompson |
Subject: |
Re: How do I define a package? |
Date: |
Wed, 29 Aug 2018 18:40:34 -0400 |
On Wed, 22 Aug 2018 02:01:26 -0400
Leo Famulari <address@hidden> 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