guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/15: gnu: Add zig-0.10.0-962.


From: guix-commits
Subject: 10/15: gnu: Add zig-0.10.0-962.
Date: Sat, 9 Nov 2024 12:14:20 -0500 (EST)

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

commit cade561601db439bd1d38376cbba1a8dd191ff02
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Sat Nov 9 15:27:43 2024 +0800

    gnu: Add zig-0.10.0-962.
    
    * gnu/packages/zig.scm (zig-0.10.0-962): New variable.
    
    Change-Id: I7dc0ef9155cb0c98c896795bd004ab76cc7d971a
---
 gnu/packages/zig.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 3be56f7a10..103c84144d 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -570,4 +570,39 @@ toolchain.  Among other features it provides
        (modify-inputs (package-native-inputs base)
          (replace "zig" `(,base "zig1")))))))
 
+(define zig-0.10.0-962
+  (let ((commit "622311fb9ac7ee6d93dcb8cda4b608751f7e092a")
+        (revision "962")
+        (base zig-0.10.0-961))
+    (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
+                  "1yywzmxr6nwhdix5x9k5nrxa4n1nc8x8v1gqgyvwdhz47x9vw8b0"))
+                (snippet '(delete-file "stage1/zig1.wasm"))))
+      (arguments
+       (substitute-keyword-arguments (package-arguments zig-0.10.0-851)
+         ((#:phases phases '%standard-phases)
+          #~(modify-phases #$phases
+              (replace 'build-zig1
+                (lambda _
+                  (invoke "zig2" "build" "--zig-lib-dir" "lib"
+                          "update-zig1" "--verbose")))
+              (delete 'prepare-source)
+              (delete 'configure)
+              (delete 'build)
+              (delete 'install)
+              (delete 'check)))))
+      (native-inputs
+       (modify-inputs (package-native-inputs base)
+         (replace "zig" `(,base "out")))))))
+
 (define-public zig zig-0.10)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]