hako pushed a commit to branch wip-zig-bootstrap
in repository guix.

commit 9ed93dd31bf101d36aebbef6f3fe33f5fd8bccc5
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Mon Nov 11 11:07:58 2024 +0800

    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
---
 gnu/packages/zig.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 17d7a638eb..e396c89930 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -1003,4 +1003,49 @@ toolchain.  Among other features it provides
        (modify-inputs (package-native-inputs base)
          (replace "zig" `(,base "zig1")))))))
 
+(define zig-0.10.0-2796-source
+  (let ((commit "42ee364e7b698822a69cba4cd2bda17868657e05")
+        (revision "2796"))
+    (origin
+      (method git-fetch)
+      (uri (git-reference
+            (url "https://github.com/ziglang/zig";)
+            (commit commit)))
+      (file-name (git-file-name "zig" (git-version "0.10" revision commit)))
+      (sha256
+       (base32 "0jd9q7bk6vsvjfma8d8iic7r9hc7j6xkz1ghw2vpra5q20fl86ba"))
+      (snippet '(delete-file "stage1/zig1.wasm")))))
+
+(define-public zig-0.10.0-2797
+  (let ((commit "35d82d31be3d2f2611049f41dc2616f898d70871")
+        (revision "2797")
+        (base zig-0.10.0-2571))
+    (package
+      (inherit base)
+      (name "zig")
+      (version (git-version "0.10.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/ziglang/zig";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0av4qw7a41d9jmdmyachhisq98c3vjw1dqln1lgy1y3jxjsdf27h"))
+                (snippet '(delete-file "stage1/zig1.wasm"))))
+      (arguments
+       (substitute-keyword-arguments %arguments-zig2+zig1
+         ((#:phases phases '%standard-phases)
+          #~(modify-phases #$phases
+              (add-after 'prepare-source 'restore-lib
+                (lambda _
+                  (delete-file-recursively "lib")
+                  (copy-recursively
+                   (string-append #+zig-0.10.0-2796-source "/lib")
+                   "lib")))))))
+      (native-inputs
+       (modify-inputs (package-native-inputs base)
+         (replace "zig" `(,base "zig1")))))))
+
 (define-public zig zig-0.10)

Reply via email to