Zig in Debian

https://ftp-master.debian.org/new/zig-default_1.html

The release of Ghostty has motivated Debian developers to get Zig packaged up. It’s now waiting on FTP master approval before it lands in unstable.

30 Likes

Zig 0.13.0 package: zig0.13 - Debian NEW package overview
Zig bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995670#183

5 Likes

I use Debian.

I first installed zig using the download tarball and modify PATH approach (this was extremely pleasing, expecially when compared to installing a C toolchain, which I still to this day do not fully understand). But as soon as I got through ziglings, I switched to the zig vscode extension integrated version manager.

I’m about 6 months in, and I still use the zig VS Code extension to manage my zig versions.

I really appreciate the zig team’s efforts to make zig as easy to install as possible, which in large part enabled this behavior of the zig extension for vscode. When I have some time for customization (which I try to avoid after a long period of distro hopping (I have ascended to debian and not touching anything)), maybe Ill try zigup, because I’ve been following nightly for the majority of my projects.

I’m not sure I’ll use my system package manager. Once I install a package, I never really remove it. Its like buying an appliance or car and keeping it for 20 years, but its downloading vscode and firefox.

3 Likes

That’s great. I’ve been advocating for the VS Code extension to manage zig installations since before it gained that ability. Happy to see it’s working for you.

I think most upstream project maintainers will not want the version of Zig from Debian. It’s better to have access to new versions and multiple versions simultaneously, and potentially edit and patch your zig installation.

However, Zig being packaged for Debian is important because it is how Zig applications will also be packaged for Debian. Ghostty is apparently coming soon, and hopefully plenty of other great free and open source software to follow in the coming years.

3 Likes

If you’re already a Mise user, it is quite good at handling Zig. zvm is also an excellent tool that makes sure to pull the right ZLS version.

2 Likes