guix-commits
[Top][All Lists]
Advanced

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

02/02: fixup! gnu: Add zig-0.13.


From: guix-commits
Subject: 02/02: fixup! gnu: Add zig-0.13.
Date: Mon, 11 Nov 2024 08:50:58 -0500 (EST)

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

commit 352d2d000d0c357163f04b2bac99400ac7dc718b
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Mon Nov 11 21:42:38 2024 +0800

    fixup! gnu: Add zig-0.13.
    
    Change-Id: I078146a65bc721144af07beac1f3ce40accc74de
---
 gnu/packages/zig.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 3810d13cb1..0b0fd9cfe4 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -1867,7 +1867,6 @@ toolchain.  Among other features it provides
       (properties `((hidden? . #t)
                     ,@(package-properties base))))))
 
-;; FIXME: RUNPATH.
 (define-public zig-0.13
   (package
     (inherit zig-0.12)
@@ -1882,7 +1881,17 @@ toolchain.  Among other features it provides
               (sha256
                (base32
                 "0ly8042lbsa8019g0d1jg4l06rxpq2530n9mijq66n4lmx7a5976"))
-              (snippet '(delete-file "stage1/zig1.wasm"))))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (delete-file "stage1/zig1.wasm")
+                  ;; Fix RUNPATH.
+                  (substitute* "build.zig"
+                    (("path_unpadded }\\);" all)
+                     (string-append all "
+    exe.addRPath(.{
+        .cwd_relative = path_unpadded[0 .. path_unpadded.len - 1 - objname.len]
+    });")))))))
     (inputs
      (modify-inputs (package-inputs zig-0.12)
        (replace "clang" clang-18)



reply via email to

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