lix/src/libcmd/common-eval-args.hh

34 lines
572 B
C++
Raw Normal View History

#pragma once
///@file
#include "args.hh"
2023-04-28 14:57:37 +00:00
#include "common-args.hh"
#include "search-path.hh"
namespace nix {
class Store;
class EvalState;
class Bindings;
struct SourcePath;
2023-04-28 14:57:37 +00:00
struct MixEvalArgs : virtual Args, virtual MixRepair
{
static constexpr auto category = "Common evaluation options";
MixEvalArgs();
Bindings * getAutoArgs(EvalState & state);
SearchPath searchPath;
std::optional<std::string> evalStoreUrl;
private:
std::map<std::string, std::string> autoArgs;
};
SourcePath lookupFileArg(EvalState & state, std::string_view s);
}