diff options
| author | raingloom <raingloom@riseup.net> | 2020-10-13 09:26:52 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2020-12-03 16:18:33 +0100 |
| commit | 64f032d73f83727c0d06a1ea6531c226593ee976 (patch) | |
| tree | cac4cfdcba62748fe875ba9d7a47d7f1bf04b004 /doc | |
| parent | 918a643bf905de2e027be50ca9a461f4af811e32 (diff) | |
build-system: Add chicken-build-system.
* guix/build-system/chicken.scm: New file.
* guix/build/chicken-build-system.scm: New file.
* Makefile.am: Add them.
* doc/guix.texi: Document it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 889f380108f..9835d19d2b8 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -7335,6 +7335,28 @@ parameters available to cargo. It will also remove an included | |||
| 7335 | defined by the crate. | 7335 | defined by the crate. |
| 7336 | @end defvr | 7336 | @end defvr |
| 7337 | 7337 | ||
| 7338 | @defvr {Scheme Variable} chicken-build-system | ||
| 7339 | This variable is exported by @code{(guix build-system chicken)}. | ||
| 7340 | It builds Chicken Scheme modules (also called ``eggs'' or ``extensions''). | ||
| 7341 | Chicken generates C source code, which then gets compiled by a C compiler, | ||
| 7342 | in this case GCC. | ||
| 7343 | |||
| 7344 | It adds @code{chicken} to the package inputs, as well as the packages of | ||
| 7345 | @code{gnu-build-system}. | ||
| 7346 | |||
| 7347 | The build system can't (yet) deduce the egg's name automatically, so just like | ||
| 7348 | with @code{go-build-system} and its @code{#:import-path}, you should define | ||
| 7349 | @code{#:egg-name} in the package's @code{arguments} field. | ||
| 7350 | |||
| 7351 | For example, if you are packaging the srfi-1 egg: | ||
| 7352 | @lisp | ||
| 7353 | (arguments '(#:egg-name "srfi-1")) | ||
| 7354 | @end lisp | ||
| 7355 | |||
| 7356 | Egg dependencies must be defined in @code{propagated-inputs}, not @code{inputs} | ||
| 7357 | because Chicken doesn't embed absolute references in compiled eggs. | ||
| 7358 | Test dependecies should go to @code{native-inputs}, as usual. | ||
| 7359 | @end defvr | ||
| 7338 | 7360 | ||
| 7339 | @defvr {Scheme Variable} copy-build-system | 7361 | @defvr {Scheme Variable} copy-build-system |
| 7340 | This variable is exported by @code{(guix build-system copy)}. It | 7362 | This variable is exported by @code{(guix build-system copy)}. It |
