about summary refs log tree commit diff
path: root/src/libstore/crypto.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-03-15T11·11+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-03-15T11·11+0100
commit02654f782f31d142f59af23d4a10dcf9134a7ff2 (patch)
tree18739a6a41a3cc01ac94fb867554496d1be69f69 /src/libstore/crypto.cc
parent00a75b1cd281e85843cae5da5d605f6e3bc733f1 (diff)
Fix Darwin build
http://hydra.nixos.org/build/33279996
Diffstat (limited to 'src/libstore/crypto.cc')
-rw-r--r--src/libstore/crypto.cc2
1 files changed, 2 insertions, 0 deletions
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
 {