summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2024-11-11 11:04:41 +0800
committerHilton Chain <hako@ultrarare.space>2024-12-31 10:54:12 +0800
commit83f034b64f45e4969e97f62cc723205c3aa770c6 (patch)
tree576e307fd39c6296a75e8e943771c2c4764e9bc1
parentc2cf6b62d7e0e05b3b4000d6ad16c2ecb01fcf4f (diff)
gnu: Add zig-0.10.0-1506.
* gnu/packages/zig.scm (zig-0.10.0-1505-source,zig-0.10.0-1506): New variables. Change-Id: I08d23ca32c5d60e1363b0c45dae7e083e9980a12
-rw-r--r--gnu/packages/zig.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 4a01aa1c0c..2d97a70d09 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -640,4 +640,41 @@ toolchain. Among other features it provides
(modify-inputs (package-native-inputs base)
(replace "zig" `(,base "out")))))))
+(define zig-0.10.0-1505-source
+ (let ((commit "fe4ea31f7e9e1c8caea6a1df107b91e8ea1a7b8a")
+ (revision "1505"))
+ (zig-source
+ (git-version "0.10.0" revision commit)
+ commit "0q91hz824l867dlzz885i4mlkjdr0v5nfk3drsnvkvz2q52r0ffx")))
+
+(define zig-0.10.0-1506
+ (let ((commit "f16c10a86b7183e99e54a70344f4681211cd52bb")
+ (revision "1506")
+ (base zig-0.10.0-1497))
+ (package
+ (inherit base)
+ (name "zig")
+ (version (git-version "0.10.0" revision commit))
+ (source (zig-source
+ version commit
+ "17qbwknv33xi8908f1kdapvvj331bmibvvjhsza04j3siq3rpbz7"))
+ ;; zig2+zig1
+ (arguments
+ (substitute-keyword-arguments (package-arguments zig-0.10.0-748)
+ ((#: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-1505-source "/lib")
+ "lib")))
+ (replace 'build-zig1
+ (lambda _
+ (invoke "./zig2" "build" "--zig-lib-dir" "lib"
+ "update-zig1" "--verbose")))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs base)
+ (replace "zig" `(,base "zig1")))))))
+
(define-public zig zig-0.10)