[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/84: gnu: zig: Add 'zig-source' procedure.
From: |
guix-commits |
Subject: |
01/84: gnu: zig: Add 'zig-source' procedure. |
Date: |
Mon, 30 Dec 2024 05:53:47 -0500 (EST) |
hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
commit c96565d4f7d0097d4857177c523760fdde18d715
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Nov 12 17:31:32 2024 +0800
gnu: zig: Add 'zig-source' procedure.
* gnu/packages/zig.scm (zig-source): New procedure.
Change-Id: I2ca2cbb3756ebb61f0e3f821e91785ec89ac0c80
Modified-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
---
gnu/packages/zig.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 6994d48818..ea06bd7c69 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -31,6 +31,30 @@
#:use-module (gnu packages llvm)
#:use-module (gnu packages llvm-meta))
+(define (zig-source version commit hash)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ziglang/zig")
+ (commit commit)))
+ (file-name (git-file-name "zig" version))
+ (sha256 (base32 hash))
+ (modules '((guix build utils)))
+ (snippet
+ #~(for-each
+ (lambda (file)
+ (when (file-exists? file)
+ (delete-file file)))
+ (append
+ '("stage1/zig1.wasm"
+ "stage1/zig1.wasm.zst")
+ ;; Generated from glibc sources, see also:
+ ;; https://github.com/ziglang/zig/blob/master/lib/libc/glibc/README.md
+ ;; https://github.com/ziglang/glibc-abi-tool
+ '("lib/libc/glibc/abilists")
+ ;; IETF RFC documents have nonfree license.
+ (find-files "." "^rfc[0-9]+\\.txt"))))))
+
(define-public zig-0.9
(package
(name "zig")
- branch wip-zig-bootstrap created (now 2d3b191da4), guix-commits, 2024/12/30
- 01/84: gnu: zig: Add 'zig-source' procedure.,
guix-commits <=
- 06/84: gnu: Add zig-0.10.0-675., guix-commits, 2024/12/30
- 05/84: gnu: Add zig-0.10.0-610., guix-commits, 2024/12/30
- 02/84: gnu: zig-0.9: Update patches., guix-commits, 2024/12/30
- 04/84: gnu: zig-0.10: Disable tests in cross builds., guix-commits, 2024/12/30
- 08/84: gnu: Add zig-0.10.0-747., guix-commits, 2024/12/30
- 10/84: gnu: Add zig-0.10.0-851., guix-commits, 2024/12/30
- 12/84: gnu: Add zig-0.10.0-961., guix-commits, 2024/12/30
- 15/84: gnu: Add zig-0.10.0-1073., guix-commits, 2024/12/30
- 17/84: gnu: Add zig-0.10.0-1506., guix-commits, 2024/12/30
- 19/84: gnu: Add zig-0.10.0-1657., guix-commits, 2024/12/30