guix-devel
[Top][All Lists]
Advanced

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

Re: Bootstrapped Zig now available in Guix master.


From: Ekaitz Zarraga
Subject: Re: Bootstrapped Zig now available in Guix master.
Date: Tue, 31 Dec 2024 16:57:22 +0100

On 2024-12-31 4:39 PM, Hilton Chain wrote:
Hi Guix,

Zig 0.13.0 is now available in master!

It's worth mentioning that some build steps can be used in shell as well:

Reusing packaged dependencies with `unpack-dependencies' from
`(guix build zig-build-system)':
--8<---------------cut here---------------start------------->8---
# Example: river
git clone https://codeberg.org/river/river && cd river && git checkout v0.3.6
guix shell --development river
echo "((assoc-ref (@ (guix build zig-build-system) %standard-phases) 
'unpack-dependencies))" | guix repl -t machine
zig build
--8<---------------cut here---------------end--------------->8---

Additionally with `rename-zig-dependencies' from `(gnu packages zig)':
--8<---------------cut here---------------start------------->8---
# Example: zig-zls@0.13
git clone https://github.com/zigtools/zls && cd zls && git checkout 0.13.0
echo "(eval ((@ (gnu packages zig) rename-zig-dependencies) \
         '((\"diffz\" . \"zig-diffz\") \
           (\"known_folders\" . \"zig-known-folders\"))) \
         (interaction-environment))" | guix repl -t machine
guix shell --development zig-zls@0.13
echo "((assoc-ref (@ (guix build zig-build-system) %standard-phases) 
'unpack-dependencies))" | guix repl -t machine
zig build
--8<---------------cut here---------------end--------------->8---


Happy New Year :)

Oh!

Great achievement!

As told in IRC, I think we should write something about this, in the line of the Mono bootstrap post. Zig people would enjoy it, and also Guix people.

It's a great opportunity to let people know how hard is to bootstrap Zig, Rust and some other languages, and make them focus a little bit more on the language bootstrappability.

I offer myself as a reviewer for the blogpost, if you decide to go that route and write one.

Thanks for making this. I followed this effort closely, even if I didn't have the chance to take part.

Today Guix is a little bit more comfortable for me thanks to this.

Happy New Year.

Ekaitz



reply via email to

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