From 3ef8c9307ce10ca59af9bcf84161a88fd08310e7 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Tue, 19 Nov 2024 20:27:49 +0800 Subject: gnu: zig: Build reproducibly. * guix/build/zig-utils.scm: New file. * Makefile.am (MODULES): Add it. * guix/build-system/zig.scm (%zig-build-system-modules): Add it. (zig-build,zig-cross-build): Add #:zig-build-target. * guix/build/zig-build-system.scm (zig-target): Move to (guix build zig-utils). (configure): Move to (guix build zig-utils) as zig-configure. (build): Replace target with zig-build-target. (%standard-phases): Adjust accordingly. * gnu/packages/zig.scm (zig-0.9)[arguments]<#:imported-modules,#:modules>: Add zig-build-system modules. <#:configure-flags>: Set ZIG_TARGET_TRIPLE for native builds too. Move applicable flags from zig-0.10 here. <#:phases>: Apply 'zig-configure. Unset ZIG_LIBC in 'check. Remove 'set-cache-dir. (zig-0.10)[arguments]<#:configure-flags>: Adjust accordingly. (zig-0.10.0-610)[arguments]<#:configure-flags>: Remove ZIG_TARGET_TRIPLE. --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 908c48b4ef..403808b0f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -284,6 +284,7 @@ MODULES = \ guix/build/bournish.scm \ guix/build/qt-utils.scm \ guix/build/zig-build-system.scm \ + guix/build/zig-utils.scm \ guix/build/make-bootstrap.scm \ guix/build/toml.scm \ guix/search-paths.scm \ -- cgit v1.2.3