# emacsPackages.ghostel fails to fetch zig dependencies

**URL:** https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072
**Category:** Help
**Created:** [September 13, 2026, 10:35am UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072 "2026-09-13T10:35:33Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![smaximov](https://discourse.nixos.org/user_avatar/discourse.nixos.org/smaximov/32/821_2.png) [@smaximov](https://discourse.nixos.org/u/smaximov)
#### Post date: [September 13, 2026, 10:35am UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/1 "2026-09-13T10:35:33Z")

</div>

_Not sure if it’s a Nix/nixpkgs issue (or a Zig/ghostty/ghostel issue) so I decided to create a forum topic first._

After updating `nixpkgs` from [241313f4](https://github.com/NixOS/nixpkgs/tree/241313f4e8e508cb9b13278c2b0fa25b9ca27163) to [eaad0894](https://github.com/NixOS/nixpkgs/tree/eaad089433ca2bb662274377d33df3d0e51ef28b), rebuilding my system started failing while fetching Zig dependencies of [`emacsPackages.ghostel`](https://github.com/NixOS/nixpkgs/blob/eaad089433ca2bb662274377d33df3d0e51ef28b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/ghostel/package.nix#L72-L76):

```auto
building the system configuration...
# It hangs here for a handful of minutes:
[1/0/16 built] building ghostel-0.52.0-zig-deps: source root is source 
# [... snip ...]
# Then it reports a bunch of errors similar to:
/build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:14:20: error: unable to connect to server: TlsInitializationFailed
            .url = "https://deps.files.ghostty.org/translate_c-a916baf225a3cfc93a982225462db612604ae290.tar.gz",
                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```

> **Click to see the full build log**
>
> ```auto
> unpacking source archive /nix/store/piz8p8dvfg7hsf982bi8qfcyig5xxqq9-source
> source root is source
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:14:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/translate_c-a916baf225a3cfc93a982225462db612604ae290.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:21:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/libxev-9ce8e8e6ff89e583258a7f8e7adeeeaeae8611bf.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:27:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/vaxis-1dbbe575dff4586fe51e3217aa5c3fecdcbb6089.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:33:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/z2d-0.11.0-j5P_HtLzDwBGyQt49DrT0v4BuVqI_SRs6CXsuj7eBVhR.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:39:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/zig_objc-c8de82ff80281215ad92900866dab7103a8efa8b.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:45:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/zig_js-3c23860e47fdcdc5af805efb7fd0bdac5fd3e9bc.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:51:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/uucode-2826a37a4562284fdacd8fa029d49509cc9bffcd.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:56:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/wayland-0.6.0-lQa1kqz8AQADQmdNJsNhLoNHcnEGEUjrOaPV-dtEnEmX.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:62:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/zf-c35c421f84895193246db06c40683c1a30e616ef.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:69:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/gobject-2026-04-23-26-1.tar.zst",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:97:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:102:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/N-V-__8AAFdWDwA0ktbNUi9pFBHCRN4weXIgIfCrVjfGxqgA.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:107:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/plasma_wayland_protocols-12207e0851c12acdeee0991e893e0132fc87bb763969a585dc16ecca33e88334c566.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:114:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/JetBrainsMono-2.304.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/build.zig.zon:119:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/NerdFontsSymbolsOnly-3.4.0.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/sentry/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/sentry-1220446be831adcca918167647c06c7b825849fa3fba5f22da394667974537a9c77e.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/gtk4-layer-shell/build.zig.zon:8:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/gtk4-layer-shell-1.1.0.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/gtk4-layer-shell/build.zig.zon:13:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/wayland-protocols-258d8f88f2c8c25a830c6316f87d23ce1a0f12d9.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/oniguruma/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/oniguruma-1220c15e72eadd0d9085a8af134904d9a0f5dfcbed5f606ad60edc60ebeccd9706bb.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/highway/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/highway-66486a10623fa0d72fe91260f96c892e41aceb06.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/libintl/build.zig.zon:8:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/gettext-0.24.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/dcimgui/build.zig.zon:11:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/DearBindings_v0.17_ImGui_v1.92.5-docking.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/dcimgui/build.zig.zon:18:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/N-V-__8AAEbOfQBnvcFcCX2W5z7tDaN8vaNZGamEQtNOe0UI.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/fontconfig/build.zig.zon:8:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/fontconfig-2.14.2.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/freetype/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/freetype-1220b81f6ecfb3fd222f76cf9106fecfa6554ab07ec7fdc4124b9bb063ae2adf969d.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/harfbuzz/build.zig.zon:15:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/harfbuzz-11.0.0.tar.xz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/libpng/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/libpng-1220aa013f0c83da3fb64ea6d327f9173fa008d10e28bc9349eac3463457723b1c66.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/breakpad/build.zig.zon:8:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/breakpad-b99f444ba5f6b98cac261cbb391d8766b34a5918.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/wuffs/build.zig.zon:14:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/wuffs-122037b39d577ec2db3fd7b2130e7b69ef6cc1807d68607a7c232c958315d381b5cd.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/glslang/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/glslang-12201278a1a05c0ce0b6eb6026c65cd3e9247aa041b1c260324bf29cee559dd23ba1.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/zlib/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/zlib-1220fed0c74e1019b3ee29edae2051788b080cd96e90d56836eea857b0b966742efb.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /build/source/zig-pkg/ghostty-1.3.2-dev-5UdBC-mtJAXcrDxuFuetC6X66XQXV8hw_7pevfmFcVKL/pkg/spirv-cross/build.zig.zon:9:20: error: unable to connect to server: TlsInitializationFailed
> .url = "https://deps.files.ghostty.org/spirv_cross-1220fb3b5586e8be67bc3feb34cbe749cf42a60d628d2953632c2f8141302748c8da.tar.gz",
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ```

(you can try to replicate this failure in the repl: `:b pkgs.emacsPackages.ghostel.zigDeps`).

I’ve found a couple of somewhat relevant issues in different repos:

- [Build fail · Issue #3366 · ghostty-org/ghostty · GitHub](https://github.com/ghostty-org/ghostty/issues/3366) — this blames Codeberg availability; I doubt it’s the case because fetching the files in the browser (and by using different CLI HTTP clients) downloads them just fine;
- [herdr: init at 0.7.0 by kevinpita · Pull Request #518310 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/518310#issuecomment-4458207002) — the problem was with Zig version mismatch which is not the issue here.

There’s also [#30853 - fetch of gitlab repo gives `TlsInitializationFailed` - ziglang/zig - Codeberg.org](https://codeberg.org/ziglang/zig/issues/30853) which alludes to some problems with extra TLS certificates in a chain, but it that doesn’t seems to be the issue since `zig fetch` successfully downloads the deps in question:

```console
$ zig fetch --global-cache-dir /tmp/scratch/zig-cache https://deps.files.ghostty.org/translate_c-a916baf225a3cfc93a982225462db612604ae290.tar.gz
translate_c-0.0.0-Q_BUWj8_BwCr4na219OimiKKj4IVSq0aKtMXCQmIk4AB

```

Is it a sandboxing issue? I also noticed that while `emacsPackages.ghostel` uses the `zig.fetchDeps` fetcher (which in turn [delegates](https://github.com/NixOS/nixpkgs/blob/eaad089433ca2bb662274377d33df3d0e51ef28b/pkgs/development/compilers/zig/fetcher.nix) to `zig build --fetch` under the hood), the `ghostty` package [utilizes](https://github.com/NixOS/nixpkgs/blob/eaad089433ca2bb662274377d33df3d0e51ef28b/pkgs/by-name/gh/ghostty/deps.nix) the built-in fetchers — I wonder if a similar approach could be taken here?

---

<div class="post-metadata">

### Author: ![MaxHearnden](https://discourse.nixos.org/user_avatar/discourse.nixos.org/maxhearnden/32/16760_2.png) [@MaxHearnden](https://discourse.nixos.org/u/MaxHearnden)
#### Post date: [September 13, 2026, 10:50am UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/2 "2026-09-13T10:50:38Z")

</div>

Could you try running

```auto
host -v -N 4 -t AAAA deps.files.ghostty.org

```

---

<div class="post-metadata">

### Author: ![smaximov](https://discourse.nixos.org/user_avatar/discourse.nixos.org/smaximov/32/821_2.png) [@smaximov](https://discourse.nixos.org/u/smaximov)
#### Post date: [September 13, 2026, 10:52am UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/3 "2026-09-13T10:52:30Z")

</div>

@MaxHearnden

```console
Trying "deps.files.ghostty.org.lan"
Trying "deps.files.ghostty.org"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30357
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;deps.files.ghostty.org. IN	AAAA

;; ANSWER SECTION:
deps.files.ghostty.org.	300	IN	AAAA	2a06:98c1:3121::
deps.files.ghostty.org.	300	IN	AAAA	2a06:98c1:3120::

Received 96 bytes from 127.0.0.53#53 in 34 ms

```

---

<div class="post-metadata">

### Author: ![woodenAllen](https://discourse.nixos.org/user_avatar/discourse.nixos.org/woodenallen/32/28769_2.png) [@woodenAllen](https://discourse.nixos.org/u/woodenAllen)
#### Post date: [September 17, 2026, 4:44am UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/4 "2026-09-17T04:44:26Z")

</div>

I think it’s been happening every time the packages are updated? It was working for me the other day, and then suddenly an flake update halted the rebuild.

---

<div class="post-metadata">

### Author: ![smaximov](https://discourse.nixos.org/user_avatar/discourse.nixos.org/smaximov/32/821_2.png) [@smaximov](https://discourse.nixos.org/u/smaximov)
#### Post date: [September 17, 2026, 8:26am UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/5 "2026-09-17T08:26:35Z")

</div>

Unfortunately, I cannot speak about “every time” — I only started using the package somewhat recently (about a couple of weeks ago). The installation worked fine that time, and then I updated the inputs and it broke 😄

Maybe when it worked the package got fetched from the binary cahce?

---

<div class="post-metadata">

### Author: ![magicquark](https://discourse.nixos.org/user_avatar/discourse.nixos.org/magicquark/32/33894_2.png) [@magicquark](https://discourse.nixos.org/u/magicquark)
#### Post date: [September 18, 2026, 6:35pm UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/6 "2026-09-18T18:35:43Z")

</div>

> [@smaximov](#):
>
> Maybe when it worked the package got fetched from the binary cahce?

Note that [cache.nixos.org](http://cache.nixos.org) does not build or cache `emacsPackages`.

> <https://github.com/NixOS/nixpkgs/blob/53ba7dd79f0cee59710be2666f5aec764b023d09/pkgs/top-level/all-packages.nix#L8407-L8411>

I have been using `ghostel` in Emacs for two months now and I have not seen this issue (yet).

---

<div class="post-metadata">

### Author: ![withakay](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/w/f475e1/32.png) [@withakay](https://discourse.nixos.org/u/withakay)
#### Post date: [September 18, 2026, 8:09pm UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/7 "2026-09-18T20:09:49Z")

</div>

seems like some sort of rate limiting at first glance maybe? But if you can download them then you should be able to add them to the store with something like `nix-store --add-fixed`

---

<div class="post-metadata">

### Author: ![smaximov](https://discourse.nixos.org/user_avatar/discourse.nixos.org/smaximov/32/821_2.png) [@smaximov](https://discourse.nixos.org/u/smaximov)
#### Post date: [September 26, 2026, 2:42pm UTC](https://discourse.nixos.org/t/emacspackages-ghostel-fails-to-fetch-zig-dependencies/80072/8 "2026-09-26T14:42:04Z")

</div>

After disabling the `ghostel` emacs package, I re-enabled it today and now it fetches deps and builds successfully again, so I guess it was a transient issue. I’m marking the topic as solved but I still have no idea what was the root cause - whether it was a sandboxing, rate-limiting, or networking issue, or an issue with the host (`deps.files.ghostty.org`).
