Hilton Chain
5ce59e0413
build-system: zig: Support Zig package manager.
...
* guix/build-system/zig.scm (zig-build,zig-cross-build)
[#:install-source?,#:skip-build?]: New arguments.
[#:tests?]: Honor #:skip-build?.
* guix/build/zig-build-system.scm (zig-source-install-path)
(zig-input-install-path,unpack-dependencies): New procedures.
(%standard-phases): Add 'unpack-dependencies.
(build,install): Honor #:skip-build?.
* doc/guix.texi (Build Systems)[zig-build-system]: Update documentation.
* gnu/packages/zig.scm (zig-0.9)[native-search-paths]: Add
GUIX_ZIG_PACKAGE_PATH.
Use search paths defined in (guix search-paths).
(add-build.zig.zon,rename-zig-dependencies): New procedures.
* gnu/packages/ncdu.scm (ncdu)[arguments]: Don't install source.
* gnu/packages/zig-xyz.scm (river,tigerbeetle,zig-zls)[arguments]: Likewise.
2024-12-31 10:56:34 +08:00
Hilton Chain
3ef8c9307c
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.
2024-12-31 10:56:34 +08:00
Efraim Flashner
05bbf0ec43
gnu: zig: Set host triple.
...
* gnu/packages/zig.scm (zig-0.10.0-675,zig-0.11)[arguments]<#:phases>: Set
host triple in CMakeLists.txt.
Change-Id: Ib05050d7e499b4336a01a140c73fb6c8bb450bd6
Modified-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2024-12-31 10:56:34 +08:00
Efraim Flashner
a6d9faf7dc
gnu: zig: Respect the PKG_CONFIG environment variable.
...
* gnu/packages/patches/zig-0.9-build-respect-PKG_CONFIG-env-var.patch:
New file.
* gnu/packages/patches/zig-0.10-build-respect-PKG_CONFIG-env-var.patch:
New file.
* gnu/packages/patches/zig-0.11-build-respect-PKG_CONFIG-env-var.patch:
New file.
* gnu/packages/patches/zig-0.12-build-respect-PKG_CONFIG-env-var.patch:
New file.
* gnu/packages/patches/zig-0.13-build-respect-PKG_CONFIG-env-var.patch:
New file.
* gnu/local.mk (dist_patch_DATA): Register them.
* gnu/packages/zig.scm (zig-0.9,zig-0.10,zig-0.11,zig-0.12,zig-0.13)[source]:
Add patches.
* guix/build/zig-build-system.scm (configure): set PKG_CONFIG.
Change-Id: I0abf871c6990144fc472191bf1167aa2fc765161
Modified-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2024-12-31 10:56:34 +08:00
Efraim Flashner
18b7fce25c
build/zig: Adjust the build triplets for some systems.
...
* guix/build/zig-build-system.scm (zig-target): New procedure.
(build): Use it to set the target when cross-compiling.
Change-Id: Ic82253ce899055526e894a0cb67738ddbb476574
Modified-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2024-12-31 10:56:34 +08:00
Hilton Chain
6fc811d02a
build/zig: Really support cross compilation.
...
* guix/build/zig-build-system.scm (configure): New procedure.
(set-cc,set-zig-global-cache-dir): Delete procedures.
(%standard-phases): Adjust accordingly.
Change-Id: I08d15add2b249f7016f9cbb07f151ecf469fe656
2024-12-31 10:56:33 +08:00
Hilton Chain
8808ea98ae
gnu: Add zig-0.13.
...
* gnu/packages/patches/zig-0.13-fix-runpath.patch: New file.
* gnu/local.mk (dist_patch_DATA): Regisiter it.
* gnu/packages/zig.scm (zig-0.13-glibc-abi-tool,zig-0.13): New variables.
Change-Id: I217a1d444acb600d8cc38abcaa3950156b11cbae
2024-12-31 10:54:17 +08:00
Hilton Chain
a39aa559ae
gnu: Add zig-0.12.0-109.
...
* gnu/packages/zig.scm (zig-0.12.0-109): New variable.
Change-Id: If480110b20b2971fe7562bbd60fcb74afc5c1ed4
2024-12-31 10:54:17 +08:00
Efraim Flashner
097b291e6f
gnu: ncdu: Update to 2.6.
...
* gnu/packages/ncdu.scm (ncdu): Update to 2.6.
[source]: Adjust snippet to not remove manpage.
[arguments]: Remove adjustments to phases.
[inputs]: Add zstd:lib.
[native-inputs]: Add pkg-config.
Remove perl.
Change-Id: I6e85f06f22dcd5d62b41009039b984e6b8e65b28
2024-12-31 10:54:17 +08:00
Hilton Chain
368c1f4c5e
gnu: Add zig-0.12.
...
* gnu/packages/patches/zig-0.12-fix-runpath.patch: New file.
* gnu/packages/patches/zig-0.12-use-baseline-cpu-by-default.patch: New file.
* gnu/packages/patches/zig-0.12-use-system-paths.patch: New file.
* gnu/local.mk (dist_patch_DATA): Regisiter them.
* gnu/packages/zig.scm (zig-0.12-glibc-abi-tool,zig-0.12): New variables.
Change-Id: I700d0afa2b373bf24a4f3527548e86dbed1aff17
2024-12-31 10:54:17 +08:00
Hilton Chain
a0d5fc28b8
gnu: Add zig-0.11.0-3604.
...
* gnu/packages/zig.scm (zig-0.11.0-3604): New variable.
Change-Id: I4d419344197d8ae4a44a6267a7594c11a5687377
2024-12-31 10:54:16 +08:00
Hilton Chain
510bf0a0a4
gnu: Add zig-0.11.0-3506.
...
* gnu/packages/zig.scm (zig-0.11.0-3506): New variable.
Change-Id: Ia1edd0d1e54f8a05b2b1d74986c259342e64a89c
2024-12-31 10:54:16 +08:00
Hilton Chain
9318034154
gnu: Add zig-0.11.0-3503.
...
* gnu/packages/zig.scm (zig-0.11.0-3503): New variable.
Change-Id: I8300bda579865a547bd45be31b74d8751ee16e63
2024-12-31 10:54:16 +08:00
Hilton Chain
57420653d5
gnu: Add zig-0.11.0-3501.
...
* gnu/packages/zig.scm (zig-0.11.0-3501): New variable.
Change-Id: Ia487a9e08bcb12169becf5b834cb9c14088f5f18
2024-12-31 10:54:16 +08:00
Hilton Chain
35fed9f7f6
gnu: Add zig-0.11.0-3344.
...
* gnu/packages/zig.scm (zig-0.11.0-3344): New variable.
Change-Id: Id3b4425bb5018df6e7ec58f82a8b654ba073a487
2024-12-31 10:54:16 +08:00
Hilton Chain
780ddf1254
gnu: Add zig-0.11.0-3245.
...
* gnu/packages/zig.scm (zig-0.11.0-3245): New variable.
Change-Id: Ie7cc13a4e3db496ff771e182a7b89248f1352983
2024-12-31 10:54:16 +08:00
Hilton Chain
dae5440ed6
gnu: Add zig-0.11.0-1967.
...
* gnu/packages/zig.scm (zig-0.11.0-1967): New variable.
Change-Id: I198cdb0a1e237e573360f7c37feff9bac5e4e3f2
2024-12-31 10:54:16 +08:00
Hilton Chain
fef723a027
gnu: Add zig-0.11.0-761.
...
* gnu/packages/zig.scm (zig-0.11.0-761): New variable.
Change-Id: Ia2ce5d7c699fa492cac0d1c13f9b080a5657457a
2024-12-31 10:54:16 +08:00
Hilton Chain
e68cfe611c
gnu: Add zig-0.11.0-702.
...
* gnu/packages/zig.scm (zig-0.11.0-702): New variable.
Change-Id: Ic532f9d590b8804c8f0dedbeec45f7b244372b28
2024-12-31 10:54:16 +08:00
Hilton Chain
90f12b0936
gnu: Add zig-0.11.0-638.
...
* gnu/packages/zig.scm (zig-0.11.0-638): New variable.
Change-Id: I5012ae588d93a7ecf646686719b54e05f3c94f95
2024-12-31 10:54:15 +08:00
Hilton Chain
1031edc276
gnu: Add zig-0.11.0-631.
...
* gnu/packages/zig.scm (zig-0.11.0-631): New variable.
Change-Id: I7acbcd4a34c68eb9c3cce4fb4ec48a858b912f55
2024-12-31 10:54:15 +08:00
Hilton Chain
a82c91baf3
gnu: Add zig-0.11.0-587.
...
* gnu/packages/zig.scm (zig-0.11.0-587): New variable.
Change-Id: Ie15ecff5647e658ced1e2d0888ba90986296ffa2
2024-12-31 10:54:15 +08:00
Hilton Chain
1631ff73fc
gnu: Add zig-0.11.0-494.
...
* gnu/packages/zig.scm (zig-0.11.0-494): New variable.
Change-Id: I4b41f283168f70af08f1a3e3fa88804fee64280f
2024-12-31 10:54:15 +08:00
Hilton Chain
0411f96f28
gnu: Add zig-0.11.0-384.
...
* gnu/packages/zig.scm (zig-0.11.0-384): New variable.
Change-Id: I9b8388600e51840df0de19e9367f45e2f386d9f4
2024-12-31 10:54:15 +08:00
Hilton Chain
27078a1f22
gnu: Add zig-0.11.0-149.
...
* gnu/packages/zig.scm (zig-0.11.0-149): New variable.
Change-Id: Ibb5b0df17b20e161772d846f589c06d3fc811263
2024-12-31 10:54:15 +08:00
Hilton Chain
ab89793218
gnu: Add zig-0.11.
...
* gnu/packages/patches/zig-0.11-fix-runpath.patch: New file.
* gnu/packages/patches/zig-0.11-use-system-paths.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register them.
* gnu/packages/zig.scm (zig-0.11-glibc-abi-tool,zig-0.11): New variables.
Change-Id: I2507af62918f3989967d55dec942b84655d6d8bd
2024-12-31 10:54:15 +08:00
Hilton Chain
654e058538
gnu: Add zig-0.10.0-3985.
...
* gnu/packages/zig.scm (zig-0.10.0-3985): New variable.
Change-Id: Ia01b9dd556e2c322b1a225976d6fb9c5c3cb5b07
2024-12-31 10:54:15 +08:00
Hilton Chain
8d79da78f1
gnu: Add zig-0.10.0-3980.
...
* gnu/packages/zig.scm (zig-0.10.0-3980): New variable.
Change-Id: I16418b409178ab6c1b78cee8a45290575dcadf7c
2024-12-31 10:54:14 +08:00
Hilton Chain
a39f31c93c
gnu: Add zig-0.10.0-3813.
...
* gnu/packages/zig.scm (zig-0.10.0-3813): New variable.
Change-Id: I36e7ba6844c23381fbbe2dcd8e2d4d55b24d20ba
2024-12-31 10:54:14 +08:00
Hilton Chain
5e6cb858e9
gnu: Add zig-0.10.0-3807.
...
* gnu/packages/zig.scm (zig-0.10.0-3807): New variable.
Change-Id: Id1fd647873f9bd1cdcbe7d615866c4cca52a5a11
2024-12-31 10:54:14 +08:00
Hilton Chain
01352c09db
gnu: Add zig-0.10.0-3728.
...
* gnu/packages/zig.scm (zig-0.10.0-3728): New variable.
Change-Id: I4e4dbcb831b0a2a4e4d875f56e8ace54a0dec4f5
2024-12-31 10:54:14 +08:00
Hilton Chain
af851e899e
gnu: Add zig-0.10.0-3726.
...
* gnu/packages/zig.scm (zig-0.10.0-3726): New variable.
Change-Id: Iac4b6546539c9ecc83fd775e360ad2e15b5e1094
2024-12-31 10:54:14 +08:00
Hilton Chain
8859b1b9e3
gnu: Add zig-0.10.0-3660.
...
* gnu/packages/zig.scm (zig-0.10.0-3660): New variable.
Change-Id: Ib05ee3026cadab2f5f7cf1da8639a4a4578737ee
2024-12-31 10:54:14 +08:00
Hilton Chain
d8187732fd
gnu: Add zig-0.10.0-2838.
...
* gnu/packages/zig.scm (zig-0.10.0-2824-source,zig-0.10.0-2838): New variables.
Change-Id: If424c545f02b7eb91ae6f4682377b91226709246
2024-12-31 10:54:14 +08:00
Hilton Chain
317723a7fa
gnu: Add zig-0.10.0-2797.
...
* gnu/packages/zig.scm (zig-0.10.0-2796-source,zig-0.10.0-2797): New variables.
Change-Id: I4e4eceb9418db9ae2c49fd073f0d2a3aa9e5b7ba
2024-12-31 10:54:14 +08:00
Hilton Chain
710e6c39a7
gnu: Add zig-0.10.0-2571.
...
* gnu/packages/zig.scm (zig-0.10.0-2571): New variable.
Change-Id: Iba7ad5ce26edcc84ba3f8720f70d250bb4ac529c
2024-12-31 10:54:14 +08:00
Hilton Chain
8d411cdd88
gnu: Add zig-0.10.0-2566.
...
* gnu/packages/zig.scm (zig-0.10.0-2565-source,zig-0.10.0-2566): New variables.
2024-12-31 10:54:13 +08:00
Hilton Chain
2af2a85356
gnu: Add zig-0.10.0-2558.
...
* gnu/packages/zig.scm (zig-0.10.0-2558): New variable.
Change-Id: I49f3a5bdf87ef5b03de2381b6a111e671142ee9e
2024-12-31 10:54:13 +08:00
Hilton Chain
d2c0830bcf
gnu: Add zig-0.10.0-1891.
...
* gnu/packages/zig.scm (zig-0.10.0-1891): New variable.
Change-Id: I7522101456ae0374923c0f9a97defababe75b4c0
2024-12-31 10:54:13 +08:00
Hilton Chain
72868c4f59
gnu: Add zig-0.10.0-1888.
...
* gnu/packages/zig.scm (zig-0.10.0-1888): New variable.
Change-Id: Icc0c5f286529d1501145f78efcdc055ae592f5dd
2024-12-31 10:54:13 +08:00
Hilton Chain
b5694bccf7
gnu: Add zig-0.10.0-1713.
...
* gnu/packages/zig.scm (zig-0.10.0-1713): New variable.
Change-Id: I7055b835a1dc8540ed47780b7a86307721de8e90
2024-12-31 10:54:13 +08:00
Hilton Chain
ba8c4e2951
gnu: Add zig-0.10.0-1712.
...
* gnu/packages/zig.scm (zig-0.10.0-1712): New variable.
Change-Id: Id44bf920414bfe0ca6c4712c3e181b97687695c4
2024-12-31 10:54:13 +08:00
Hilton Chain
d016fcfd31
gnu: Add zig-0.10.0-1681.
...
* gnu/packages/zig.scm (zig-0.10.0-1681): New variable.
Change-Id: Ie7cfa50977b28788e42bad3266b2d9c238029e62
2024-12-31 10:54:13 +08:00
Hilton Chain
1b31135340
gnu: Add zig-0.10.0-1657.
...
* gnu/packages/zig.scm (zig-0.10.0-1657): New variable.
Change-Id: Idddc1a1c5f14cec21bca59eb0cf72fbb39667261
2024-12-31 10:54:13 +08:00
Hilton Chain
a7cfce944e
gnu: Add zig-0.10.0-1638.
...
* gnu/packages/patches/zig-0.10.0-1638-re-add-qualCast.patch: New file.
* gnu/local.mk (dist_patch_DATA): Regisiter it.
* gnu/packages/zig.scm (zig-0.10.0-1637-source,zig-0.10.0-1638): New variables.
Change-Id: I66853da969d7cb2afc820a860757ef08b4577fbd
2024-12-31 10:54:13 +08:00
Hilton Chain
83f034b64f
gnu: Add zig-0.10.0-1506.
...
* gnu/packages/zig.scm (zig-0.10.0-1505-source,zig-0.10.0-1506): New variables.
Change-Id: I08d23ca32c5d60e1363b0c45dae7e083e9980a12
2024-12-31 10:54:12 +08:00
Hilton Chain
c2cf6b62d7
gnu: Add zig-0.10.0-1497.
...
* gnu/packages/zig.scm (zig-0.10.0-1497): New variable.
Change-Id: Ibf8dfb3756bbe0b751d333cb00d275c02d5ae1e9
2024-12-31 10:54:12 +08:00
Hilton Chain
05a0e057fe
gnu: Add zig-0.10.0-1073.
...
* gnu/packages/zig.scm (zig-0.10.0-1073): New variable.
Change-Id: I717229da04fd90b73a3730ed30f92367ea5b5da4
2024-12-31 10:54:12 +08:00
Hilton Chain
9310290968
gnu: Add zig-0.10.0-1027.
...
* gnu/packages/zig.scm (zig-0.10.0-1027): New variable.
Change-Id: Ia51fc7546c76ac567244aabe2fecacbb4453f733
2024-12-31 10:54:12 +08:00
Hilton Chain
e4fd974e85
gnu: Add zig-0.10.0-962.
...
* gnu/packages/zig.scm (zig-0.10.0-962): New variable.
Change-Id: Id63fefdb772fe4a14d4fbeff77db7a843aa65c91
2024-12-31 10:54:12 +08:00