[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: gnu: Add zig-0.11.0-3604.
From: |
guix-commits |
Subject: |
04/05: gnu: Add zig-0.11.0-3604. |
Date: |
Mon, 11 Nov 2024 06:20:17 -0500 (EST) |
hako pushed a commit to branch wip-zig-bootstrap
in repository guix.
commit 3811cf3c16b2178144d94bcca0a52b9e35b1bf07
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Mon Nov 11 19:19:06 2024 +0800
gnu: Add zig-0.11.0-3604.
* gnu/packages/zig.scm (zig-0.11.0-3604): New variable.
Change-Id: I4d419344197d8ae4a44a6267a7594c11a5687377
---
gnu/packages/zig.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 92c2609222..79ac4e7644 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -1743,4 +1743,37 @@ toolchain. Among other features it provides
(modify-inputs (package-native-inputs base)
(replace "zig" `(,base "zig1")))))))
+(define zig-0.11.0-3604
+ (let ((commit "7611d90ba011fb030523e669e85acfb6faae5d19")
+ (revision "3604")
+ (base zig-0.11.0-3506))
+ (package
+ (inherit base)
+ (name "zig")
+ (version (git-version "0.11.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
+ "1yl91rpqsnlf38hg77phpl5hy7ds0cg57agr23hjhy50z4vdj3m4"))
+ (snippet '(delete-file "stage1/zig1.wasm"))))
+ (arguments
+ (substitute-keyword-arguments %arguments-zig1
+ ((#:phases phases '%standard-phases)
+ #~(modify-phases #$phases
+ (replace 'patch-more-shebangs
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Zig uses information about /usr/bin/env to determine the
+ ;; version of glibc and other data.
+ (substitute* "lib/std/zig/system.zig"
+ (("/usr/bin/env")
+ (search-input-file inputs "/bin/env")))))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs base)
+ (replace "zig" `(,base "out")))))))
+
(define-public zig zig-0.10)