forked from lix-project/lix
33 lines
543 B
C++
33 lines
543 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "args.hh"
|
|
#include "common-args.hh"
|
|
|
|
namespace nix {
|
|
|
|
class Store;
|
|
class EvalState;
|
|
class Bindings;
|
|
struct SourcePath;
|
|
|
|
struct MixEvalArgs : virtual Args, virtual MixRepair
|
|
{
|
|
static constexpr auto category = "Common evaluation options";
|
|
|
|
MixEvalArgs();
|
|
|
|
Bindings * getAutoArgs(EvalState & state);
|
|
|
|
Strings searchPath;
|
|
|
|
std::optional<std::string> evalStoreUrl;
|
|
|
|
private:
|
|
std::map<std::string, std::string> autoArgs;
|
|
};
|
|
|
|
SourcePath lookupFileArg(EvalState & state, std::string_view s);
|
|
|
|
}
|