At some point, when debugging, I CTRL-C’d the process and now I see this when I rerun my rebuild command.
warning: executing SQLite statement ‘pragma synchronous = off’: database disk image is malformed, database disk image is malformed (in ‘/root/.cache/nix/binary-cache-v6.sqlite’)
I can share the full log message if that’s helpful.
That means you’re building pkg-config locally and cannot connect to the freedesktop forge.
The freedesktop forge has seen some downtime lately, so that may be it, or you’re behind a firewall or your DNS is pranking you.
That said, this should be downloaded from the binary cache, which…
Yikes. Well corruption in that database would explain why you’re building locally.
I think it’s safe to delete the nix cache directory, and that should just rebuild the database. Move it to a backup location just in case, and try building again.