all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: Ekaitz Zarraga <ekaitz@elenq.tech>
Cc: Efraim Flashner <efraim@flashner.co.il>,
	"guix-devel\\\\\\\\@gnu.org" <guix-devel@gnu.org>
Subject: Re: WIP: zig-build-system
Date: Thu, 12 Jan 2023 22:11:30 +0000	[thread overview]
Message-ID: <hdtQwl1fTi48w3D3EjglaKkQS176mQ_VhuGXXFsAbpRVweRckck9fFKhrx2yqK9e58o1qExQQWwiSGOjFPVOSQ_iODVGhyEhvp2sdEIle7Q=@elenq.tech> (raw)
In-Reply-To: <8LvJ97sbVMdQU87Ucepn5g_9fjgv0ochK3sTaoamrdwWT3TiFmX425mypnueXIfZI67ej5c4ar98yk_1O0sGJ_7CTSBwDgrgjcROBvV5nbA=@elenq.tech>

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]


> Hi
> 
> I think I have something working!
> 
> It's not intended to be production-ready code but it should be near to that.
> 
> There are two files attached: the build system and a package to show how to use it more or less.
> 
> Please take a look and tell me what you think. Let's see if we can merge this someday.
> 
> Best,
> Ekaitz

Let me add the docs too

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-Add-zig-build-system-documentation.patch --]
[-- Type: text/x-patch; name=0003-Add-zig-build-system-documentation.patch, Size: 1792 bytes --]

From e5029028d6cf6c7b9d61081d95f09e2d735648ba Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Thu, 12 Jan 2023 23:09:46 +0100
Subject: [PATCH 3/3] Add zig-build-system documentation

---
 doc/guix.texi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index aacf748838..c28dbf035a 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -9573,6 +9573,28 @@ Python package is used to run the script can be specified with the
 @code{#:python} parameter.
 @end defvr
 
+@defvr {Scheme Variable} zig-build-system This variable is exported by
+@code{(guix build-system zig)}. It implements the build procedure used by the
+Zig build system (@code{zig build} command).
+
+This build system adds @code{zig} to the package inputs, as well as the
+packages of @code{gnu-build-system}.
+
+There's no @code{configure} phase because zig packages typically don't need to
+be configured. The @code{#:zig-build-flags} parameter is taken as a list of
+flags passed to the @code{zig} command during the build.  The
+@code{#:zig-test-flags} parameter is taken as a list of flags passed to the
+@code{zig test} command during the @code{check} phase. The default compiler
+package can be overriden using the @code{#:zig} argument.
+
+The @code{zig-release-type} parameter can be passed to define the type of
+release to make. Possible values are: @code{safe}, @code{fast}, @code{small}.
+It's default value is @code{#f}, which doesn't include the release flag in the
+@code{zig} command, resulting in a @code{debug} build.
+
+@end defvr
+
+
 @defvr {Scheme Variable} scons-build-system
 This variable is exported by @code{(guix build-system scons)}.  It
 implements the build procedure used by the SCons software construction
-- 
2.38.0


  reply	other threads:[~2023-01-12 22:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-15 12:12 WIP: zig-build-system Ekaitz Zarraga
2022-12-15 14:01 ` Efraim Flashner
2022-12-20 10:16   ` Ekaitz Zarraga
2022-12-20 10:50     ` Ekaitz Zarraga
2023-01-12 19:56       ` Ekaitz Zarraga
2023-01-12 22:11         ` Ekaitz Zarraga [this message]
2023-01-17 15:37           ` Ludovic Courtès
2023-01-17 17:18             ` Ekaitz Zarraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hdtQwl1fTi48w3D3EjglaKkQS176mQ_VhuGXXFsAbpRVweRckck9fFKhrx2yqK9e58o1qExQQWwiSGOjFPVOSQ_iODVGhyEhvp2sdEIle7Q=@elenq.tech' \
    --to=ekaitz@elenq.tech \
    --cc=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.