[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/72: gnu: zig: Add 'zig-source' procedure.
From: |
guix-commits |
Subject: |
01/72: gnu: zig: Add 'zig-source' procedure. |
Date: |
Thu, 21 Nov 2024 07:19:42 -0500 (EST) |
hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
commit ba5a3f0f8497ae23528666cbe5c5df4069f89832
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
---
gnu/packages/zig.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 6994d48818..1019793693 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -31,6 +31,26 @@
#: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")
+ ;; 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 47a0a24991), guix-commits, 2024/11/21
- 01/72: gnu: zig: Add 'zig-source' procedure.,
guix-commits <=
- 04/72: gnu: zig-0.10: Fix lint warning., guix-commits, 2024/11/21
- 02/72: gnu: zig-0.9: Update patches., guix-commits, 2024/11/21
- 11/72: gnu: Add zig-0.10.0-853., guix-commits, 2024/11/21
- 10/72: gnu: Add zig-0.10.0-851., guix-commits, 2024/11/21
- 06/72: gnu: Add zig-0.10.0-675., guix-commits, 2024/11/21
- 07/72: gnu: Add zig-0.10.0-722., guix-commits, 2024/11/21
- 09/72: gnu: Add zig-0.10.0-748., guix-commits, 2024/11/21
- 16/72: gnu: Add zig-0.10.0-1497., guix-commits, 2024/11/21
- 20/72: gnu: Add zig-0.10.0-1681., guix-commits, 2024/11/21
- 22/72: gnu: Add zig-0.10.0-1713., guix-commits, 2024/11/21