For me too, but then grep zl doesn’t match any of the filenames we’re talking about here, so it’s not a surprise.
The latest image is 2026-06-06, so you could try updating to that. But then I haven’t seen any issues reported for the 2026-06-04 image that would explain this, so I don’t know.
The file in question doesn’t start with “z”; it’s libzstd.so.1. And I’ve also got /usr/lib/libzstd.so.1 on my 2026-06-04 build, too.
I think you likely do have that file on your system, and the problem is that the build process you’re using simply doesn’t see it for some reason. Perhaps the include paths aren’t set up to include /usr/lib? I’m not familiar at all with how Nix works though.
If you truly don’t have /usr/lib/libzstd.so.1, the most likely explanation is that when you look for the file, you’re in a container (Kapsule, Distrobox, etc) without realizing it.