From 02654f782f31d142f59af23d4a10dcf9134a7ff2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 15 Mar 2016 12:11:27 +0100 Subject: Fix Darwin build http://hydra.nixos.org/build/33279996 --- src/libstore/crypto.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/crypto.cc') diff --git a/src/libstore/crypto.cc b/src/libstore/crypto.cc index 53e94e1f5997..caba22c1e274 100644 --- a/src/libstore/crypto.cc +++ b/src/libstore/crypto.cc @@ -37,10 +37,12 @@ SecretKey::SecretKey(const string & s) #endif } +#if !HAVE_SODIUM [[noreturn]] static void noSodium() { throw Error("Nix was not compiled with libsodium, required for signed binary cache support"); } +#endif std::string SecretKey::signDetached(const std::string & data) const { -- cgit 1.4.1