Fix Darwin build

http://hydra.nixos.org/build/33279996
This commit is contained in:
Eelco Dolstra 2016-03-15 12:11:27 +01:00
parent 00a75b1cd2
commit 02654f782f
6 changed files with 8 additions and 4 deletions

View file

@ -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
{

View file

@ -39,7 +39,7 @@ struct PublicKey : Key
private:
PublicKey(const std::string & name, const std::string & key)
: Key(name, key) { }
friend class SecretKey;
friend struct SecretKey;
};
typedef std::map<std::string, PublicKey> PublicKeys;

View file

@ -48,7 +48,7 @@ protected:
}
}
void upsertFile(const std::string & path, const std::string & data)
void upsertFile(const std::string & path, const std::string & data) override
{
throw Error("uploading to an HTTP binary cache is not supported");
}

View file

@ -33,7 +33,7 @@ struct NarIndexer : ParseSink, StringSource
{
}
void createDirectory(const Path & path)
void createDirectory(const Path & path) override
{
members.emplace(path,
NarMember{FSAccessor::Type::tDirectory, false, 0, 0});
@ -44,7 +44,7 @@ struct NarIndexer : ParseSink, StringSource
currentPath = path;
}
void isExecutable()
void isExecutable() override
{
isExec = true;
}

View file

@ -2,6 +2,7 @@
#include <memory>
#include <exception>
#include <stdexcept>
namespace nix {

View file

@ -2,6 +2,7 @@
#include <functional>
#include <map>
#include <string>
namespace nix {