Why does nixos-rebuild want me to install a library?

You might need to update your inputs.

Here’s the fix I was carrying: gnupg: fix cross compilation by uninsane · Pull Request #298001 · NixOS/nixpkgs · GitHub

and if you check here, you’ll see that PR has landed into nixos-unstable: https://nixpk.gs/pr-tracker.html?pr=298001