From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kAv9AlFOLmcmlQAAe85BDQ:P1 (envelope-from ) for ; Fri, 08 Nov 2024 17:45:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kAv9AlFOLmcmlQAAe85BDQ (envelope-from ) for ; Fri, 08 Nov 2024 18:45:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JbwPZMmO; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=IWOrhJBD; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731087952; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qSnCG+f4aj/3XNO21aE89dw5huj2NoIw9HZC+sqsQ3w=; b=OFLVhrUI0bEq/kRI3bSHcigQ+hwOC8qdJ2JXBuqsVp5J6758lTqUm1+PpunpzyUR544i1h AWKXe2WEctX9AjsPpZVT1erzz+oWUoyXoCUe3tsdItUqv4EPr4AoL4cmH0p8UIRz/1Nxpb W/AkDaH73dHX1oPA7x58y2BLKJdCxqdVmiwNe6G5BWp1Bu/sBlTWk31co0zn6GmirWvXk3 w7CSef2tMZtb7YV/QsHjJHAncJPrKSWTbnrcLQiMlThcEVgfcjayQGrHB0chTXIlJIh2CV VnVhN0Hz2IfNDZllKj3N8F52PoV2NvEOOQ8ii5oVlUhtWvXGaAj1mfx35NjOZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=JbwPZMmO; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=IWOrhJBD; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731087952; a=rsa-sha256; cv=none; b=FDlrrArPY7N6Le0Iu2MbrRdRJiV4qRqpuJ5GmAX08WFlgBK30E4Xxhrq1KU1LS9j4b23lw wp/niNsmlyWsOq58fvZsx6CYwrR7hpzddDymAA3Z/NinhHUn2t3q6h9SL9fJVs6oB59xWz TCB6ZTXLbEarl95X4ClDWwysTgsC6XKswVeB59/8EiwmRzFz4n/iZEE2TO3ajLA8GwNQV4 8NKkf7KlQ9IW4wJpycAcScwvmZRNH5GDloIVvPRde+FN+64teisV+WsvdEl1wWrQ1WBEGB xSrXRp4TuqIrSeGI3wTRD4C1SsPLwX5NtX879jRrzPNgMst/h+qrEyAxdwOXCA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DC95D80EFD for ; Fri, 08 Nov 2024 18:45:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9T2s-0005IT-3b; Fri, 08 Nov 2024 12:45:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9T2f-0005B7-SQ for bug-guix@gnu.org; Fri, 08 Nov 2024 12:45:06 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9T2d-0008Mq-UJ for bug-guix@gnu.org; Fri, 08 Nov 2024 12:45:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=qSnCG+f4aj/3XNO21aE89dw5huj2NoIw9HZC+sqsQ3w=; b=JbwPZMmOVFCqRTn4W8wzq9+2Uj4/gYBn/k/R3SaU9qkWJMtjszRiw5Z5yaWtJnY5Lqweoj7UHpzJwV0BN9Mm+JWgOv28U3Efkjh29DB2IhzHPjVRfEPG575nf1RJE+rbNop8HziTcq1UpnJN+1hiL2hn6Kqij1g35t00EBir62aOPhJ6bIeTCEarJltz7mu/t5KhVqQHsmHfJ5a0n/j1401bjNOjwz8KTLxkU941XgymGlBwjVlc2dK+55wzyiM3sAsZygC/qaHz+EPnZpLng2JHi8N9/YjrH2W1wwWSVXMTko8ajcMQ0lRUbUVlRlIhzQUH3QZhrcD2ZNkyXFAPbA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9T2d-0001S9-Ci; Fri, 08 Nov 2024 12:45:03 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74217: [PATCH 2/2] gnu: Add zig-0.10.0-610. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: ekaitz@elenq.tech, hako@ultrarare.space, noe@xn--no-cja.eu, bug-guix@gnu.org, Ekaitz Zarraga Resent-Date: Fri, 08 Nov 2024 17:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74217 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74217@debbugs.gnu.org Cc: Hilton Chain , Ekaitz Zarraga , Hilton Chain , =?UTF-8?Q?No=C3=A9?= Lopez X-Debbugs-Original-Xcc: Ekaitz Zarraga , Hilton Chain , =?UTF-8?Q?No=C3=A9?= Lopez Received: via spool by 74217-submit@debbugs.gnu.org id=B74217.17310878775497 (code B ref 74217); Fri, 08 Nov 2024 17:45:03 +0000 Received: (at 74217) by debbugs.gnu.org; 8 Nov 2024 17:44:37 +0000 Received: from localhost ([127.0.0.1]:51951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9T2D-0001Qa-50 for submit@debbugs.gnu.org; Fri, 08 Nov 2024 12:44:37 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:51268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9T2A-0001Q8-R7 for 74217@debbugs.gnu.org; Fri, 08 Nov 2024 12:44:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731087869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qSnCG+f4aj/3XNO21aE89dw5huj2NoIw9HZC+sqsQ3w=; b=IWOrhJBDOImyFMEi2oGozv+IYIL82T/yL7rvAca6YFUG9JTNjUzrlSq3QfSZ9wXdLeaMR7 CnkvbHvBbFkeIgRE5vgVM4GWzmdysCeAkPeJbSkCxe2sd+uORxQ00su8mSvTAButnnhY5C FJeltff5c2QGoMW0YPm/AE+v8wnLuHlS0P82g/x4BJkOnLIvxNZJ9+/zblVxHcrfjKBTnN FXzZfAW3kXq722wYDRIFsiaYcYhIlfcVXX9c8mGlGi0KHjCslCOeKR5ccP94uPrm5kWos8 BAQrPhDftHsd2ZJEUdFx3HfU7rNd1LvMUda6Najq1nxNbLrBhtjECyQE1jEW4A== Date: Sat, 9 Nov 2024 01:44:07 +0800 Message-ID: <91e88fbf01f28428bdf46464efd4912e3fd29f5d.1731084096.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ----- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain From: Hilton Chain via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 2.07 X-Spam-Score: 2.07 X-Migadu-Queue-Id: DC95D80EFD X-TUID: 19QYT+2fUikY * gnu/packages/zig.scm (zig-0.10.0-610): New variable. Change-Id: I277a7f5e9781e89d7ad7cd108fec9afcf8cd23d9 --- gnu/packages/zig.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm index 68907fd04e..4174dba38b 100644 --- a/gnu/packages/zig.scm +++ b/gnu/packages/zig.scm @@ -299,4 +299,50 @@ (define zig-0.10.0-610-bootstrap (prepend binaryen))) (outputs '("out" "zig1"))))) +;; Bootstrap with our zig1.wasm. +(define zig-0.10.0-610 + (let ((commit "e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118") + (revision "610")) + (package + (inherit zig-0.10) + (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)) + (modules '((guix build utils))) + (snippet '(delete-file "stage1/zig1.wasm.zst")) + (sha256 + (base32 + "08pm3f4hh6djl3szhqgm7fa3qisdl2xh9jrp18m0z7bk2vd0bzw7")))) + (arguments + (substitute-keyword-arguments (package-arguments zig-0.10) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'unpack-zig1 + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (install-file (search-input-file + (or native-inputs inputs) "bin/zig1.wasm.zst") + "stage1"))) + (add-after 'install 'update-zig1 + (lambda _ + (invoke (string-append #$output "/bin/zig") + "build" "update-zig1" "--verbose"))) + (add-after 'update-zig1 'install-zig1 + (lambda _ + (install-file "stage1/zig1.wasm.zst" + (string-append #$output:zig1 "/bin")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke (string-append #$output "/bin/zig") + "test" "-I" "test" "test/behavior.zig")))))))) + (native-inputs + (modify-inputs (package-native-inputs zig-0.10) + (prepend binaryen `(,zig-0.10.0-610-bootstrap "zig1")))) + (outputs '("out" "zig1"))))) + (define-public zig zig-0.10) -- 2.46.0