Build failure: x11-fonts gunzip: cannot execute: required file not found

I’m not sure if this problem is specific to me, or if everyone is getting it as well. I am using Wayland with Sway. I haven’t had this problem in the past.

(My $DAYJOB is blocked by the fact that I can’t get it to work, because I haven’t been able to install azure-cli)

The problem happened when on latest nix-unstable channel, I run nixos-rebuild --impure --flake ...

error: builder for '/nix/store/8rixkgs68h9q5syk8cwxv2bfh805l7p0-X11-fonts.drv' failed with exit code 127;
       last 1 log lines:
       > /build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 6: /nix/store/qfc6wq1wpxvkkjqa6xr5685ip97qc3sr-gzip-1.13/bin/gunzip: cannot execute: required file not found
       For full logs, run 'nix log /nix/store/8rixkgs68h9q5syk8cwxv2bfh805l7p0-X11-fonts.drv'.
error: 1 dependencies of derivation '/nix/store/dql6x4hrmi54v7z196d36kzybydmamf8-system-path.drv' failed to build

nix log output didn’t give additional information unfortunately. I have tried removing the eval-cache-* in /root/.nix, but this still happen. I have asked GPT-o4 for help, but as expected it couldn’t figure out the problem either.

Help is greatly appreciated! First posted in Build failure: x11-fonts gunzip: cannot execute: required file not found · Issue #355634 · NixOS/nixpkgs · GitHub.