I had to install the following packages first, on Debian 10 (Buster) amd64: libssl-dev pkg-config libsodium-dev nettle-dev libclang-dev build-essential clang llvm-7-dev
I also had to remove libssl1.0.2. (Nothing that I needed depended on it on my system anyway.)