Hash mismatch importing path, nix binary cache broken?

I was able to nix build that path so the cache shouldn’t be broken.

The reason this surfaces during a closure copy is that Nix assembles back the NAR file to send over the wire, and compares its checksum with the one it got from cache.nixos.org (which is recorded in /nix/var/nix/db/db.sqlite). And because of the disk corruption, the assembled NAR ends up with different content.

Maybe WSL has something to do with it

/nix/store/r26vcc9843r9x631swg9shcrc37a6ccz-ld.so is a symlink to /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/ld-linux-x86-64.so.2

Can you build /nix/store/whypqfa83z4bsn43n4byvmw80n4mg3r8-glibc-2.37-45/lib/ld-linux-x86-64.so.2

fallback could work around it but diffing the files would be interesting nix.conf - Nix Reference Manual

2 Likes