From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kEtcIl4AemfWBQAAqHPOHw:P1 (envelope-from ) for ; Sun, 05 Jan 2025 03:45:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kEtcIl4AemfWBQAAqHPOHw (envelope-from ) for ; Sun, 05 Jan 2025 04:45:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Iktk04CX; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736048733; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XTadpSN8mntEuVca/gc4F1MaWnkAzNPI9hyW4H0jM1Y=; b=EH+TKxxG1RXeScMm4UB7vl3jxPGUgxeibo9qFDUI3A0Niuo3PpPdobn4hkyOzdsJxNX/+J vh/HS+FvLQTYrS0q0s4asYHkUKd2xCDVb/2kY80yF2aAw0EkzApyLbj0nSqMYvy8PPbP4o 4Ih0MnxyGwBdK1U0FNwkW0TBYJ57ld4ir+5faM5Ho63yAWghGel+RXqIIukLXSaa2YJtaW Ujzf7YsYU/EGICPMOHqxaPCHsQ6oz3UCLjvsDVGHKMfdCwTHqd/yJuMy2wEGk6ukqQX0lP skX5RyZqvUAl+wVYjRyq5vwU1YykfbfmoW27fWMYSsVxrZ/R75KXzOUdSAJ2iQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Iktk04CX; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736048733; a=rsa-sha256; cv=none; b=tqvfI6TiEkCUogfPBn9kEuNFbUv0kseW6oSQUJr2YgUgcgZeVp6Rtihadvni2dBmgo7upS DYR0LKnAW7eVpkxiCsaiLy8IjIguCE3IiEjNwmendNkPx/0FgP0wWrchsd2fQuDFCG285y NhT0UeyFYtmT2nMyRzgQA9IW/oDSZOaK1z38nnGJLimbbrx9UN6jipiAKyXoPUG00XV46l WBkOV8BHDfFQ8x3fmxzB5iAJC7M13pmrMUcp/EYM+erKN2umhOtT1PSS2QCzpKRJ3aLR25 hsR1eQiLf9VYHbFShEKG4MPCWvp60ljq0ticSWR/AlPDZ2ogZ6mIHaSwpuPabQ== 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 B79AD5BDE5 for ; Sun, 05 Jan 2025 04:45:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUHZN-0002YW-FC; Sat, 04 Jan 2025 22:44:53 -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 1tUHZL-0002Y0-Oz for guix-devel@gnu.org; Sat, 04 Jan 2025 22:44:52 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUHZJ-0001Nj-Ll for guix-devel@gnu.org; Sat, 04 Jan 2025 22:44:51 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-aab6fa3e20eso2192408866b.2 for ; Sat, 04 Jan 2025 19:44:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736048687; x=1736653487; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XTadpSN8mntEuVca/gc4F1MaWnkAzNPI9hyW4H0jM1Y=; b=Iktk04CXoOnOsvWRb7YT475cfEoNQd/uWYb+XWgbi4qVXpSRICmh8OI9mA3EMyUQOn jGTsghrOjTAEx8ZF8NrwImHObpwWJYcCAgFZZdNKCrnRvy5uSSHwQ1+O+5lbvMVyTyPb X5j/QD/jKGTyy4pIPN+CoMLlviolqj9uEueahY1ELbBYQRPfQSO4HQeipVdAWhJsI6p4 QeJ6V9dm1WwaQYd+3o7V3JOxp8ndVWdltL0ncCnG3EbNqOwWQiKH1xufdBu3aUoAb2VB kI6G7xoLXaWLlNh7+7pO8NMyv+bsL2YRiCUM3G6gNvIFADXXOnx3aiFgBw5tViKIG/z+ vlOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736048687; x=1736653487; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XTadpSN8mntEuVca/gc4F1MaWnkAzNPI9hyW4H0jM1Y=; b=CDAGc/Qtg3cvgG+xB0B9CeMCt3AFtilCLtd+9Tp/MM8wUV1AjpKMTL+h4W2w373ery LgAohMnRbB8VBHWkdy7ixOZ2X3vts8r7/EPsQlFi05LmwQOB/sbFYsse7YexP1Jt3jaQ KJdsHoW1gDhUlfwGG1fZ1gf9SsMsnpmgMr0OIKYN7a9E/bznkRJjSU1VgcRyrzrqmIyp u5C6hz+gNFvIeiXYs8uWDuQhECKs1DqwyIqqZSxNc+VRdRqtpsYgdFc5Ah3TLPn1QzIE uE36UzdsiRaLgL6TzdNlwHGC0dUonMoYZFsjtYgUePaHCit17/HbeUwmMoBsGNMnHtmw YSTg== X-Gm-Message-State: AOJu0YyclyxFt69UkNNKwxes7uJWtE+JcCrupGiVMahfvZT2QbJlB8Zw GYInW/d2E8rnuMa9yGVnv14OzrHa0Uq3f/ikWMf4Dbkto7I2q/qCidVi2eRLAPt28W0vekMqOef x1nJyTgM9kUSdzzQ+fVfReO9/nMQvrR28Bss= X-Gm-Gg: ASbGncsH8n9mlurJ5qcOtIdWJHCBWEd20scCrIJm6hfKlifitesPngW1K5Xp00ZiF+f E19YJ5IBbV47LprJuZoncSagf+8ipTxK5vqcIa3o= X-Google-Smtp-Source: AGHT+IG9dVo85Ds0/nnaAogh1u0QUHjZLU1xc02dW7G3D2xUytzGleDbANSB8X1KXIs7zhJdlZxgyJjpJQY3GTnghBg= X-Received: by 2002:a17:907:3f26:b0:aaf:17d:803f with SMTP id a640c23a62f3a-aaf017d83dcmr3035790766b.51.1736048686315; Sat, 04 Jan 2025 19:44:46 -0800 (PST) MIME-Version: 1.0 References: <87r05km11t.wl-hako@ultrarare.space> In-Reply-To: <87r05km11t.wl-hako@ultrarare.space> From: Timothy Washington Date: Sat, 4 Jan 2025 22:44:34 -0500 Message-ID: Subject: Re: Bootstrapped Zig now available in Guix master. To: Hilton Chain Cc: Guix Devel Content-Type: multipart/alternative; boundary="00000000000042c148062aed55ac" Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=twashing@gmail.com; helo=mail-ej1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: B79AD5BDE5 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.19 X-Spam-Score: -4.19 X-TUID: S7kSFY6k5Ysp --00000000000042c148062aed55ac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Hilton, thanks for the feedback. These were the general paths I was looking at. A . Manually Guix shell with zig Build regular Ghostty. Here, I'd follow the official direction on Building Ghostty from Source. https://ghostty.org/docs/install/build Build Ghostty with guix + custom build steps. But it looks like this has already been done. https://codeberg.org/look/saayix/src/branch/main/saayix/packages/terminals.= scm#L31 B. Using Nix Can we use the Ghostty Nix package? The Ghostty "official build environment is defined by Nix. You do not need to use Nix to build Ghostty, but the Nix environment is the environment which runs CI tests and builds release artifacts, so it is the most reliable way to build Ghostty" (ref). https://ghostty.org/docs/install/build The Ghostty "Build from Source / Building with Nix" section describes how to set up the Nix environment. https://ghostty.org/docs/install/build#building-with-nix But Guix comes with a service for using Nix packages. "GNU Guix Reference Manual / Miscellaneous Services". https://guix.gnu.org/manual/en/html_node/Miscellaneous-Services.html#index-= nix_002dservice_002dtype C. But you're saying that the Toys external channel already packaged it. https://toys.whereis.social/?search=3Dghostty "Note its definition is currently written in a way that cannot be accepted into Guix." I'm fine with that for the moment. I think Ghostty is open source. So we can play around with it to make the packaging more canonical. I'll take a look at the examples for Zig packages in the (gnu packages zig-xyz) module. https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/zig-xyz.scm I'm confident that the zig-build-system, or some modification of it, can support Ghostty. It's just a matter of if I can do it, lol :) But this sets me on the path. I really appreciate your feedback on this =F0= =9F=91=8F=F0=9F=8F=BF Cheers Tim On Fri, 3 Jan 2025 at 09:41, Hilton Chain wrote: > Hi Timothy, > > On Thu, 02 Jan 2025 09:09:10 +0800, > Timothy Washington wrote: > > > > Hi there Hilton, > > > > This is a great achievement and I appreciate your work on this. I have = my > > eye on packaging Ghostty for geeks when I came across your work here. A= re > > you also eyeing packaging Ghostty as well? If not, then don't mind me. = If > > so, is there anything a Zig and Guix noob can help with? > > I have checked it briefly but I'm not going to package it. There's one > package > in an external channel[1], you can try it there for now. Note its > definition is > currently written in a way that cannot be accepted into Guix. > > Examples for Zig packages are available in (gnu packages zig-xyz) > module[2], I > think zig-build-system can support Ghostty well, but the package itself i= s > a bit > complex, so I would advise against packaging it if you don't have much > experience. > > Thanks > --- > [1]: https://toys.whereis.social/?search=3Dghostty > [2]: > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/zig-xyz.scm > --00000000000042c148062aed55ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey Hilton, thanks for the feedback.

Th= ese were the general paths I was looking at.


A . Manually
Gui= x shell with zig
Build regular Ghostty. Here, I'd follow the officia= l direction on Building Ghostty from Source.
https://ghostty.org/docs/install/build

B= uild Ghostty with guix + custom build steps. But it looks like this has alr= eady been done.
https://codeberg.org/look/saayix/src= /branch/main/saayix/packages/terminals.scm#L31


B. Using Nix<= br>
Can we use the Ghostty Nix package? The Ghostty "official build= environment is defined by Nix. You do not need to use Nix to build Ghostty= , but the Nix environment is the environment which runs CI tests and builds= release artifacts, so it is the most reliable way to build Ghostty" (= ref).
https://ghostty= .org/docs/install/build

The Ghostty "Build from Source / Bu= ilding with Nix" section describes how to set up the Nix environment.<= br>htt= ps://ghostty.org/docs/install/build#building-with-nix

But Guix c= omes with a service for using Nix packages. "GNU Guix Reference Manual= / Miscellaneous Services".
ht= tps://guix.gnu.org/manual/en/html_node/Miscellaneous-Services.html#index-ni= x_002dservice_002dtype


C. But you're saying that the Toy= s external channel already packaged it.
https://toys.whereis.social/?search=3Dghostty=

"Note its definition is currently written in a way that cannot= be accepted into Guix."
I'm fine with that for the moment. I t= hink Ghostty is open source. So we can play around with it to make the pack= aging more canonical.

I'll take a look at the examples for Zig p= ackages in the (gnu packages zig-xyz) module.
https://git.sava= nnah.gnu.org/cgit/guix.git/tree/gnu/packages/zig-xyz.scm

I'm= confident that the zig-build-system, or some modification of it, can suppo= rt Ghostty. It's just a matter of if I can do it, lol :)

But thi= s sets me on the path. I really appreciate your feedback on this=C2=A0=F0= =9F=91=8F=F0=9F=8F=BF


Cheers
Tim=C2=A0


On Fri, 3 Jan 2025 at 09:41, Hilton = Chain <hako@ultrarare.space&= gt; wrote:
Hi Ti= mothy,

On Thu, 02 Jan 2025 09:09:10 +0800,
Timothy Washington wrote:
>
> Hi there Hilton,
>
> This is a great achievement and I appreciate your work on this. I have= my
> eye on packaging Ghostty for geeks when I came across your work here. = Are
> you also eyeing packaging Ghostty as well? If not, then don't mind= me. If
> so, is there anything a Zig and Guix noob can help with?

I have checked it briefly but I'm not going to package it.=C2=A0 There&= #39;s one package
in an external channel[1], you can try it there for now.=C2=A0 Note its def= inition is
currently written in a way that cannot be accepted into Guix.

Examples for Zig packages are available in (gnu packages zig-xyz) module[2]= , I
think zig-build-system can support Ghostty well, but the package itself is = a bit
complex, so I would advise against packaging it if you don't have much<= br> experience.

Thanks
---
[1]: https://toys.whereis.social/?search=3Dghostty<= br> [2]: https://git.savannah.gn= u.org/cgit/guix.git/tree/gnu/packages/zig-xyz.scm
--00000000000042c148062aed55ac--